Export (0) Print
Expand All

AutomationProperties Class

Provides support for getting or setting the value of instance-level values of automation properties. These property values are set as attached properties (typically in XAML) and supplement or override automation property values from a control's AutomationPeer.

System.Object
  System.Windows.Automation.AutomationProperties

Namespace:  System.Windows.Automation
Assembly:  System.Windows (in System.Windows.dll)

public static class AutomationProperties

The AutomationProperties type exposes the following members.

  NameDescription
Public attached propertySupported by Silverlight for Windows PhoneAcceleratorKeyGets or sets the accelerator key string for the element.
Public attached propertySupported by Silverlight for Windows PhoneAccessKeyGets or sets the access key for the element.
Public attached propertySupported by Silverlight for Windows PhoneAutomationIdGets or set the string that uniquely identifies the element to UI automation.
Public attached propertySupported by Silverlight for Windows PhoneHelpTextGets or sets the help text for the element.
Public attached propertySupported by Silverlight for Windows PhoneIsRequiredForFormGets or sets a value that indicates whether the element is required to be filled out on a form.
Public attached propertySupported by Silverlight for Windows PhoneItemStatusGets or sets a description of the status of an item in an element.
Public attached propertySupported by Silverlight for Windows PhoneItemTypeGets or sets a description of the type of the specified element.
Public attached propertySupported by Silverlight for Windows PhoneLabeledByGets or sets the element that contains the text label for the element.
Public attached propertySupported by Silverlight for Windows PhoneNameGets or sets the automation name of the element.
Top

  NameDescription
Public methodStatic memberSupported by Silverlight for Windows PhoneGetAcceleratorKeyGets the value of the AutomationProperties.AcceleratorKey attached property for the specified DependencyObject.
Public methodStatic memberSupported by Silverlight for Windows PhoneGetAccessKeyGets the value of the AutomationProperties.AccessKey attached property for the specified DependencyObject.
Public methodStatic memberSupported by Silverlight for Windows PhoneGetAutomationIdGets the value of the AutomationProperties.AutomationId attached property for the specified DependencyObject.
Public methodStatic memberSupported by Silverlight for Windows PhoneGetHelpTextGets the value of the AutomationProperties.HelpText attached property for the specified DependencyObject.
Public methodStatic memberSupported by Silverlight for Windows PhoneGetIsRequiredForFormGets the value of the AutomationProperties.IsRequiredForForm attached property for the specified DependencyObject.
Public methodStatic memberSupported by Silverlight for Windows PhoneGetItemStatusGets the value of the AutomationProperties.ItemStatus attached property for the specified DependencyObject.
Public methodStatic memberSupported by Silverlight for Windows PhoneGetItemTypeGets the value of the AutomationProperties.ItemType attached property for the specified DependencyObject.
Public methodStatic memberSupported by Silverlight for Windows PhoneGetLabeledByGets the value of the AutomationProperties.LabeledBy attached property for the specified DependencyObject.
Public methodStatic memberSupported by Silverlight for Windows PhoneGetNameGets the value of the AutomationProperties.Name attached property for the specified DependencyObject.
Public methodStatic memberSupported by Silverlight for Windows PhoneSetAcceleratorKeySets the value of the AutomationProperties.AcceleratorKey attached property for the specified DependencyObject.
Public methodStatic memberSupported by Silverlight for Windows PhoneSetAccessKeySets the value of the AutomationProperties.AccessKey attached property for the specified DependencyObject.
Public methodStatic memberSupported by Silverlight for Windows PhoneSetAutomationIdSets the value of the AutomationProperties.AutomationId attached property for the specified DependencyObject.
Public methodStatic memberSupported by Silverlight for Windows PhoneSetHelpTextSets the value of the AutomationProperties.HelpText attached property for the specified DependencyObject.
Public methodStatic memberSupported by Silverlight for Windows PhoneSetIsRequiredForFormSets the value of the AutomationProperties.IsRequiredForForm attached property for the specified DependencyObject.
Public methodStatic memberSupported by Silverlight for Windows PhoneSetItemStatusSets the value of the AutomationProperties.ItemStatus attached property for the specified DependencyObject.
Public methodStatic memberSupported by Silverlight for Windows PhoneSetItemTypeSets the value of the AutomationProperties.ItemType attached property for the specified DependencyObject.
Public methodStatic memberSupported by Silverlight for Windows PhoneSetLabeledBySets the value of the AutomationProperties.LabeledBy attached property for the specified DependencyObject.
Public methodStatic memberSupported by Silverlight for Windows PhoneSetNameSets the value of the AutomationProperties.Name attached property for the specified DependencyObject.
Top

  NameDescription
Public fieldStatic memberSupported by Silverlight for Windows PhoneAcceleratorKeyPropertyIdentifies the AutomationProperties.AcceleratorKey attached property.
Public fieldStatic memberSupported by Silverlight for Windows PhoneAccessKeyPropertyIdentifies the AutomationProperties.AccessKey attached property.
Public fieldStatic memberSupported by Silverlight for Windows PhoneAutomationIdPropertyIdentifies the AutomationProperties.AutomationId attached property.
Public fieldStatic memberSupported by Silverlight for Windows PhoneHelpTextPropertyIdentifies the AutomationProperties.HelpText attached property.
Public fieldStatic memberSupported by Silverlight for Windows PhoneIsRequiredForFormPropertyIdentifies the AutomationProperties.IsRequiredForForm attached property.
Public fieldStatic memberSupported by Silverlight for Windows PhoneItemStatusPropertyIdentifies the AutomationProperties.ItemStatus attached property.
Public fieldStatic memberSupported by Silverlight for Windows PhoneItemTypePropertyIdentifies the AutomationProperties.ItemType attached property.
Public fieldStatic memberSupported by Silverlight for Windows PhoneLabeledByPropertyIdentifies the AutomationProperties.LabeledBy attached property.
Public fieldStatic memberSupported by Silverlight for Windows PhoneNamePropertyIdentifies the AutomationProperties.Name attached property.
Top

Scenarios and techniques for System.Windows.Automation.AutomationProperties are described in detail in the topic Automation Properties for Accessibility Support in UI.

This class defines several attached properties. In Silverlight, all attached properties are backed by dependency properties. Attached properties are a XAML concept, whereas dependency properties are a concept implemented by Silverlight and also WPF. Thus the attached property system in Silverlight includes concepts that are related to XAML as well as to the general Silverlight dependency property concepts. In code, you can get or set the attached properties either using a dedicated accessor, or by using GetValue and SetValue.

For example, to set a value for AutomationProperties.AutomationId in code, you could either call SetAutomationId (the dedicated accessor), or call SetValue and pass the AutomationIdProperty identifier. For more information on attached properties in Silverlight, see Attached Properties Overview.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft