SetterTriggerConditionValueConverter.ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)

.NET Framework (current version)
 
System_CAPS_noteNote

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

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: