Binding.ConverterCulture Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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.

Syntax

Public Property ConverterCulture As CultureInfo
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.

Exceptions

Exception Condition
InvalidOperationException

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

Remarks

If ConverterCulture is nullNothingnullptra null reference (Nothing in Visual Basic), the culture is determined by the Language property.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

Binding Class

System.Windows.Data Namespace

Other Resources

Data binding for Windows Phone 8