CollectionViewSource.Culture Property

 

Gets or sets the culture that is used for operations such as sorting and comparisons.

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

[TypeConverterAttribute(typeof(CultureInfoIetfLanguageTagConverter))]
public CultureInfo Culture { get; set; }

Property Value

Type: System.Globalization.CultureInfo

The culture that is used for operations such as sorting and comparisons.

This property is forwarded to any collection view created from this Source collection.

<object Culture="ietfLanguageTag"/>

ietfLanguageTag

A string used to set the CultureInfo. This string is used to internally call. GetCultureInfoByIetfLanguageTag. For details on the string format, see CultureInfo.GetCultureInfoByIetfLanguageTag.

.NET Framework
Available since 3.0
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: