Binding.ConverterCulture Property

July 28, 2014

Gets or sets the culture to be used by the Converter.

Namespace:  System.Windows.Data
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

public CultureInfo ConverterCulture { get; set; }
<Binding ConverterCulture="cultureInfo"/>

XAML Values

cultureInfo

A string specifying language and culture that follows the RFC 3066 standard. For example, U.S. English is "en-US". For more information on the format, see XmlLanguage (this is not literally the same property type in the strict CLR sense, but it uses the same string format).

Property Value

Type: System.Globalization.CultureInfo
The CultureInfo used by the Converter.

ExceptionCondition
InvalidOperationException

The Binding has already been attached to a target element, and cannot be modified.

If ConverterCulture is null, the culture is determined by the Language property.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft