Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Tag Property (UIElement)

Gets or sets an object that can be used for user storage or information passing.

XAML
<object Tag="objectvalue" .../>
Scripting
value = object.tag
object.tag = value

Property Value

string

An arbitrary user-determined string.

This property is read/write. The default value is null.

This property has a similar purpose to "Tag" in other programming models; it provides a property that can be used to pass information between objects, or can provide a means of customization or differentiation between defined object types.

Applies To

Canvas, Ellipse, Glyphs, Image, InkPresenter, Line, MediaElement, Path, Polygon, Polyline, Rectangle, TextBlock

See Also

InitParams

Community Additions

Show:
© 2015 Microsoft