-api-id | -api-type |
---|---|
T:Microsoft.UI.Xaml.Automation.Peers.ImageAutomationPeer |
winrt class |
Exposes Image types to Microsoft UI Automation.
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.
ImageAutomationPeer has overrides of Core methods such that the associated AutomationPeer methods provide peer-specific information to a Microsoft UI Automation client.
- GetPattern reports no pattern support.
- GetClassName returns "Image".
- GetAutomationControlType returns AutomationControlType.Image. 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.
Image, FrameworkElementAutomationPeer, Basic accessibility information, Image and ImageBrush