XamlReaderSettings.IgnoreUidsOnPropertyElements 屬性

定義

取得或設定值,這個值指定 XAML 讀取器是否應該忽略存在於屬性 (Property) 項目中的 x:Uid 屬性 (Attribute) 值。

public:
 property bool IgnoreUidsOnPropertyElements { bool get(); void set(bool value); };
public bool IgnoreUidsOnPropertyElements { get; set; }
member this.IgnoreUidsOnPropertyElements : bool with get, set
Public Property IgnoreUidsOnPropertyElements As Boolean

屬性值

Boolean

如果讀取器應該忽略屬性 (Property) 項目上之 true 屬性 (Attribute) 的值,則為 x:Uid。 如果讀取器應該處理屬性 (Property) 項目上的 false 屬性 (Attribute),則為 x:Uid。 預設為 false

備註

在當地語系化期間,屬性 x:Uid 可用來識別標記中的元素,讓當地語系化工具可以將 XAML 元素當做當地語系化的離散實體來處理。 屬性通常不會出現在 XAML 中的屬性元素上。 不過,這是一個例外狀況, x:Uid 因為某些用法會將當地語系化文字放在屬性元素中做為內容,而不是可以接收其本身的 x:Uid 個別物件。 IgnoreUidsOnPropertyElements將值設定為啟用 true 更嚴格的模式。 的 false 預設值會繼續處理屬性專案 x:Uid 屬性。

適用於