Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DeferrableContentConverter::ConvertFrom Method (ITypeDescriptorContext^, CultureInfo^, Object^)

.NET Framework (current version)
 

Converts the specified stream to a new DeferrableContent object.

Namespace:   System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)

public:
virtual Object^ ConvertFrom(
	ITypeDescriptorContext^ context,
	CultureInfo^ culture,
	Object^ value
) override

Parameters

context
Type: System.ComponentModel::ITypeDescriptorContext^

An ITypeDescriptorContext that provides a format context.

culture
Type: System.Globalization::CultureInfo^

The CultureInfo to use as the current culture.

value
Type: System::Object^

The source stream to convert.

Return Value

Type: System::Object^

A new DeferrableContent object.

Exception Condition
ArgumentNullException

context is null.

InvalidOperationException

context is not able to provide the necessary XAML schema context for BAML.

-or-

IProvideValueTarget service interpretation of context determines that the target object is not a ResourceDictionary.

-or-

value is not a valid byte stream.

The value for context must provide services for IXamlSchemaContextProvider, IRootObjectProvider, IXamlObjectWriterFactory, and IProvideValueTarget. The schema context when IXamlSchemaContextProvider is queried must be an internally implemented XAML schema context that is particular for BAML usages. This prevents most user code scenarios from using DeferrableContentConverter.

.NET Framework
Available since 4.0
Return to top
Show:
© 2017 Microsoft