Image​Automation​Peer Image​Automation​Peer Image​Automation​Peer Class


Exposes Image types to Microsoft UI Automation.

public : class ImageAutomationPeer : FrameworkElementAutomationPeer, IImageAutomationPeerpublic class ImageAutomationPeer : FrameworkElementAutomationPeer, IImageAutomationPeerPublic Class ImageAutomationPeer Inherits FrameworkElementAutomationPeer Implements IImageAutomationPeer
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Inherited Members

Inherited methods

Inherited properties


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 Microsoft 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 Microsoft UI Automation client.


ImageAutomationPeer(Image) ImageAutomationPeer(Image) ImageAutomationPeer(Image)

Initializes a new instance of the ImageAutomationPeer class.

public : ImageAutomationPeer(Image owner)public ImageAutomationPeer(Image owner)Public Sub New(owner As Image)
Image Image Image

The Image to create a peer for.


See Also