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:
virtual Object^ ConvertFrom(
	ITypeDescriptorContext^ context,
	CultureInfo^ culture,
	Object^ source
) override

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: