Export (0) Print
Expand All

Binding.ConverterCulture Property

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

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

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.

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.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

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

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

Community Additions

ADD
Show:
© 2014 Microsoft