ImageAutomationPeer class
TOC
Collapse the table of content
Expand the table of content

ImageAutomationPeer class

Exposes Image types to Microsoft UI Automation.

Inheritance

Object
  DependencyObject
    AutomationPeer
      FrameworkElementAutomationPeer
        ImageAutomationPeer

Syntax


public class ImageAutomationPeer : FrameworkElementAutomationPeer

Members

The ImageAutomationPeer class has these types of members:

Constructors

The ImageAutomationPeer class has these constructors.

ConstructorDescription
ImageAutomationPeer Initializes a new instance of the ImageAutomationPeer class.

 

Remarks

The Windows Runtime Image class creates a new ImageAutomationPeer as its OnCreateAutomationPeer definition. Image is sealed, so the normal scenario of deriving from the class and its existing peer isn't applicable to ImageAutomationPeer.

Also, the Image isn't focusable, which limits its participation in a UI Automation tree view of the UI. There are techniques for increasing the accessibility visibility of images in UI, such as applying labels or visible captions. For more info, see "Accessible names for images" section of Basic accessibility information.

Default peer implementation and overrides in ImageAutomationPeer

ImageAutomationPeer has overrides of Core methods such that the associated AutomationPeer methods provide peer-specific information to a UI Automation client.

The peer also has other behaviors that are provided by the base FrameworkElementAutomationPeer class. For more info, see "Base implementation in FrameworkElementAutomationPeer" section of Custom automation peers.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

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

Metadata

Windows.winmd

Attributes

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]
[WebHostHidden()]

See also

Object
Image
FrameworkElementAutomationPeer
Basic accessibility information
Image and ImageBrush

 

 

Show:
© 2016 Microsoft