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.

SetterTriggerConditionValueConverter.ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)

.NET Framework (current version)
 

Converts the converted source value if an underlying type converter can be obtained from context. Otherwise returns an unconverted source.

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

public override object ConvertFrom(
	ITypeDescriptorContext context,
	CultureInfo culture,
	object source
)

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.

source
Type: System.Object

The object to convert.

Return Value

Type: System.Object

The converter object, or possibly an unconverted source.

Exception Condition
ArgumentNullException

context or source is null.

NotSupportedException

No IXamlSchemaContextProvider service available.

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