UidPropertyAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates the CLR property of a class that provides the x:Uid Directive value.
public ref class UidPropertyAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false)]
public sealed class UidPropertyAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false)>]
type UidPropertyAttribute = class
inherit Attribute
Public NotInheritable Class UidPropertyAttribute
Inherits Attribute
- Inheritance
- Attributes
Remarks
The UidPropertyAttribute is a XAML language attribute that identifies element nodes in markup so that they can be uniquely identified. Although the model for x:Uid is potentially more general, one usage of unique identifiers for XAML elements is for localization tools, so that XAML language components that need localization can generate a companion localization source and then re-integrated with the original XAML. For more information on how x:Uid is used in WPF localization. see WPF Globalization and Localization Overview.
In versions of the .NET Framework before .NET Framework 4, this class existed in the WPF-specific assembly WindowsBase. In .NET Framework 4 and later versions, UidPropertyAttribute is in the System.Xaml assembly. For more information, see Types Migrated from WPF to System.Xaml.
Constructors
| Name | Description |
|---|---|
| UidPropertyAttribute(String) |
Initializes a new instance of the UidPropertyAttribute class. |
Properties
| Name | Description |
|---|---|
| Name |
Gets the name of the CLR property that represents the x:Uid Directive value. |