Represents culture information for use in XML and XAML markup.
Assembly: System.Windows (in System.Windows.dll)
Language prefix, using the ISO 639-1 language prefix values. For example en, or zh. Uppercase values are accepted and converted to lowercase. This may also be an empty attribute, "".
If provided, must be preceded by a single hyphen. Then, a subcode as defined by RFC 3066. The most typical usage, and the one which is most likely to properly map to a CultureInfo, is a country or regional designation such as -us or -hk. Uppercase values are accepted and converted to lowercase.
Thetype exposes the following members.
|Equals||Checks for equality of an object to the current object. (Overrides Object.Equals(Object).)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Serves as a hash function for the class. (Overrides Object.GetHashCode.)|
|GetLanguage||Returns a instance, based on a string representing the language per RFC 3066.|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
The culture information may or may not have a registered CultureInfo present on the system where the XML is interpreted.
This class is useful for dealing with values represented using xml:lang in XML.
Note that the XML specification allows the empty string for xml:lang, although that is not permitted by RFC 3066; therefore, this type permits "" (empty attribute string). A default-constructed behaves as if constructed with "" (empty string).
In general, the construction syntax for in XAML and code parallels the constructor syntax for CultureInfo, at least in terms of the meaning of the input string.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.