SetterTriggerConditionValueConverter.ConvertFrom Metod

Definition

Konverterar det konverterade källvärdet om en underliggande typkonverterare kan hämtas från kontexten. Annars returneras en okonverterad källa.

public:
 override System::Object ^ ConvertFrom(System::ComponentModel::ITypeDescriptorContext ^ context, System::Globalization::CultureInfo ^ culture, System::Object ^ source);
public override object ConvertFrom(System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object source);
override this.ConvertFrom : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj -> obj
Public Overrides Function ConvertFrom (context As ITypeDescriptorContext, culture As CultureInfo, source As Object) As Object

Parametrar

context
ITypeDescriptorContext

En ITypeDescriptorContext som ger en formatkontext.

culture
CultureInfo

Att CultureInfo använda som den aktuella kulturen.

source
Object

Objektet som ska konverteras.

Returer

Konverterarobjektet, eller möjligen en okonverterad källa.

Undantag

context eller source är null.

Ingen IXamlSchemaContextProvider tjänst är tillgänglig.

Gäller för