This documentation is archived and is not being maintained.

DeferrableContentConverter.ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)

Converts the specified stream to a new DeferrableContent object.

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

public override Object ConvertFrom(
	ITypeDescriptorContext context,
	CultureInfo culture,
	Object value


Type: System.ComponentModel.ITypeDescriptorContext
An ITypeDescriptorContext that provides a format context.
Type: System.Globalization.CultureInfo
The CultureInfo to use as the current culture.
Type: System.Object
The source stream to convert.

Return Value

Type: System.Object
A new DeferrableContent object.


context is null.


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


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


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

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.