Windows Dev Center

Expand Minimize

AutomationProperties.ItemType attached property

Gets or sets a description of the type of the specified element.


<object AutomationProperties.ItemType="typeString" />

XAML Values

typeString

The description of the type of the specified element.

Remarks

AutomationProperties.ItemType is an attached property, which supports a XAML usage. When getting this property in code, use GetItemType. When setting this property in code, use SetItemType instead. In code usages, the target parameter is the object where the attached property value is set. Another way to get or set the value in code is to use the dependency property system, calling either GetValue or SetValue and passing ItemTypeProperty as the dependency property identifier.

The purpose of AutomationProperties.ItemType and the AutomationProperties attached properties is to provide instance values for behavior that are not already present or defined in the control definition or a control's applied generic template.

This property is used to obtain information about items in a list, tree view, or data grid. For example, an item in a file-directory view might be described as "Document File" or "Folder".

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Automation

Metadata

Windows.winmd

See also

AutomationProperties

 

 

Show:
© 2015 Microsoft