Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 2.43 KB

imageautomationpeer.md

File metadata and controls

32 lines (22 loc) · 2.43 KB
-api-id -api-type
T:Microsoft.UI.Xaml.Automation.Peers.ImageAutomationPeer
winrt class

Microsoft.UI.Xaml.Automation.Peers.ImageAutomationPeer

-description

Exposes Image types to Microsoft UI Automation.

-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 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.

-examples

-see-also

Image, FrameworkElementAutomationPeer, Basic accessibility information, Image and ImageBrush