Windows apps
Collapse the table of content
Expand the table of content
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.

VirtualizationCacheLengthConverter.ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Converts the specified object to a VirtualizationCacheLength.

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

public override object ConvertFrom(
	ITypeDescriptorContext typeDescriptorContext,
	CultureInfo cultureInfo,
	object source


Type: System.ComponentModel.ITypeDescriptorContext

An object that provides a format context.

Type: System.Globalization.CultureInfo

An object that provides the culture information that is used during conversion.

Type: System.Object

The object to convert to a VirtualizationCacheLength.

Return Value

Type: System.Object

The converted object.

Exception Condition

source is null.


source cannot be converted to a VirtualizationCacheLength.

The VirtualizationCacheLengthConverter can convert the following types to a VirtualizationCacheLength:

Call the CanConvertFrom method before calling the ConvertFrom to avoid throwing an exception.

.NET Framework
Available since 4.5
Return to top
© 2017 Microsoft