Share via


Binding.ConverterCulture Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

Namespace:  System.Windows.Data
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
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 nulla null reference (Nothing in Visual Basic), the culture is determined by the Language property.

See Binding Markup Extension to learn how ConverterCulture can be set as a binding property through the Binding markup extension, which enables specifying an entire Binding as an attribute string.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.