다음을 통해 공유


Language (UIElement)

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

Gets or sets the language of the content within an object.

<object Language="xmllangString" .../>
value = object.Language
object.Language = value

Property Value

Type: string

A language in the same format as xml:lang (ISO 639-1).

This property is read/write. The default is the string "en-us".

Remarks

Language is typically set on root elements. It represents a meaning similar to xml:lang. Language values inherit to child elements. The practical effects of Language are limited to the following objects in Silverlight 2:

Run

TextBlock

TextBox

Version Information

Silverlight 2