ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)
Collapse the table of content
Expand the table of content

PixelFormatConverter.ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)

Attempts to convert a specified object to an instance of PixelFormat.

Namespace:  System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

public override Object ConvertFrom(
	ITypeDescriptorContext td,
	CultureInfo ci,
	Object o
)
You cannot use methods in XAML.

Parameters

td
Type: System.ComponentModel.ITypeDescriptorContext

Type context information used for conversion.

ci
Type: System.Globalization.CultureInfo

Cultural information that is respected during conversion.

o
Type: System.Object

The object being converted.

Return Value

Type: System.Object

ExceptionCondition
NotSupportedException

o is null or is an invalid type.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

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

.NET Framework

Supported in: 3.5, 3.0

Community Additions

ADD
Show:
© 2016 Microsoft