Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
WPF Fundamentals
XAML
 xml:lang Handling in XAML
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Windows Presentation Foundation
xml:lang Handling in XAML

Updated: November 2007

xml:lang is an XML defined attribute that declares the language and culture information for an object element.

<object xml:lang="rfc3066lang" />

rfc3066lang

A string derived from the RFC 3066 standard that identifies either a language, or a language-region with language and region separated by a single hyphen. See XmlLanguage for more information on the values and format.

The definition for the xml:lang attribute in XAML is derived from xml:lang as defined as a "special attribute" by World Wide Web Consortium (W3C) for XML. Language and culture information is potentially processed in different ways by elements depending on their implementations, but there is no default XAML processing of the xml:lang attribute.

The default value of the xml:lang attribute is an empty string at the attribute level.

The xml:lang attribute effects and the value of the attribute are scoped to child elements.

For elements that are derived classes of FrameworkElement or FrameworkContentElement, you can use the equivalent Language dependency property rather than the xml:lang attribute. The Language property will default to "en-US" if not otherwise set either through the property itself or through processing the xml:lang attribute.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker