[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets or sets an arbitrary object value that can be used to store custom information about this object.
Assembly: System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.
<frameworkElement> <frameworkElement.Tag> object* </frameworkElement.Tag> </frameworkElement>
Property ValueType: System.Object
The intended value. This property has no default value.
Dependency property identifier field: TagProperty
This property is similar to Tag properties in other programming models. is intended to provide a preexisting property location where you can store some basic custom information about any FrameworkElement without requiring you to derive from FrameworkElement or an intermediate class.
Because this property takes an object, a property element usage is required to set the property in XAML to anything other than an object with a type converter, such as a string. Objects used in this manner are typically not within the standard XAML namespaces and therefore may require mapping an external namespace in order to be introduced as XAML object elements.