FrameworkContentElement.Language 屬性

定義

取得或設定套用至個別項目的當地語系化/全球化語言資訊。Gets or sets localization/globalization language information that applies to an individual element.

public:
 property System::Windows::Markup::XmlLanguage ^ Language { System::Windows::Markup::XmlLanguage ^ get(); void set(System::Windows::Markup::XmlLanguage ^ value); };
public System.Windows.Markup.XmlLanguage Language { get; set; }
member this.Language : System.Windows.Markup.XmlLanguage with get, set
Public Property Language As XmlLanguage

屬性值

這個項目的文化特性資訊。The culture information for this element. 預設值是 XmlLanguage 執行個體,其 IetfLanguageTag 值設定為字串 "en-US"。The default value is an XmlLanguage instance with its IetfLanguageTag value set to the string "en-US".

備註

字串格式遵循 RFC 3066 標準。The string formats follow the RFC 3066 standard. 例如,美國英文是「en-us」。For example, U.S. English is "en-US". 如需值和格式的詳細資訊,請參閱 XmlLanguageSee XmlLanguage for more information on the values and format.

此相依性屬性會繼承屬性值。This dependency property inherits property values. 如果有子專案沒有任何其他值可供 Language 透過本機值或樣式建立,則屬性系統會將此值設定為最接近的父項目(已指派此值) Language 值。If there are child elements with no other value for Language established through local values or styles, the property system will set the value to be the Language value of the nearest parent element with this value assigned.

相依性屬性資訊Dependency Property Information

識別碼欄位Identifier field LanguageProperty
設定為 true 的中繼資料屬性Metadata properties set to true Inherits

適用於