FrameworkElement.Tag property

Expand
0 out of 1 rated this helpful - Rate this topic

FrameworkElement.Tag property

[This documentation is preliminary and is subject to change.]

Gets or sets an arbitrary object value that can be used to store custom information about this object.

Syntax


public object Tag { get; set; }


<frameworkElement>
  <frameworkElement.Tag>
    object*
  </frameworkElement.Tag>
</frameworkElement>


<frameworkElement Tag="string"/>

XAML Values

object*

A object or a custom object that supports object element syntax (the backing type must be nonabstract and must support a public default constructor).

string

A string value (can be a true string or input for an object type that supports type conversion from string).

Property value

Type: System.Object [.NET] | Platform::Object [C++]

The intended value. This property has no default value.

Requirements

Minimum supported client

Windows 8 Release Preview

Minimum supported server

Windows Server 2012

Namespace

Windows.UI.Xaml
Windows::UI::Xaml [C++]

Metadata

Windows.winmd

See also

FrameworkElement

 

 

Build date: 5/22/2012

Did you find this helpful?
(1500 characters remaining)
Community Additions ADD