Dela via


Binding.ConverterLanguage Property

Definition

Gets or sets a value that names the language to pass to any converter specified by the Converter property.

public:
 property Platform::String ^ ConverterLanguage { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring ConverterLanguage();

void ConverterLanguage(winrt::hstring value);
public string ConverterLanguage { get; set; }
var string = binding.converterLanguage;
binding.converterLanguage = string;
Public Property ConverterLanguage As String
<Binding ConverterLanguage="string"/>

Property Value

String

Platform::String

winrt::hstring

A string that names a language. Interpretation of this value is ultimately up to the converter logic.

Remarks

If a value for ConverterLanguage is specified, this value is used for the language value when invoking the converter logic. Specifically, this provides the value of the language parameter of the Convert or ConvertBack methods of the specific converter that is requested with the Converter property. By default and in the absence of ConverterLanguage being set, the value passed for language is an empty string.

You can't set the property values of a Binding object after that binding has been attached to a target element and target property. If you attempt this you'll get a run-time exception.

Applies to

See also