UIElement.Uid 属性

定义

获取或设置此元素的唯一标识符(用于本地化)。Gets or sets the unique identifier (for localization) for this element. 这是依赖项属性。This is a dependency property.

public:
 property System::String ^ Uid { System::String ^ get(); void set(System::String ^ value); };
public string Uid { get; set; }
member this.Uid : string with get, set
Public Property Uid As String

属性值

一个字符串,该字符串是此元素的唯一标识符。A string that is the unique identifier for this element.

注解

由设计器用来获取 x:Uid 值(有关详细信息,请参阅WPF 全球化和本地化概述)。Used by designers to get the x:Uid value (see WPF Globalization and Localization Overview for more information).

依赖项属性信息Dependency Property Information

标识符字段Identifier field UidProperty
元数据属性设置为 trueMetadata properties set to true NoneNone

适用于

另请参阅