Skip to main content

ImageAutomationPeer

C# API / Fluence.Wpf.Automation

  • Assembly: Fluence.Wpf
  • Namespace: Fluence.Wpf.Automation
public class ImageAutomationPeer : FrameworkElementAutomationPeer

Exposes Image to UI Automation as an image element, but only once the consumer has given it an accessible name. An unnamed image is treated as decorative and is dropped from both the control and content views, so assistive technology never announces a bare unlabelled image element. Authority: WinUI keeps Image at AccessibilityView="Raw" until it is named, and Microsoft's UI Automation guidance is that decorative graphics stay out of the tree entirely. In-tree precedent: FontIconAutomationPeer for the both-views exclusion, and TextBlockAutomationPeer for keying that exclusion off the accessible name.

Remarks: Initializes a new instance of the ImageAutomationPeer class.

Parameter owner: The Image control represented by this automation peer.

Base type: FrameworkElementAutomationPeer (including inherited WPF and .NET members)

C# source

Constructors​

ImageAutomationPeer​

public ImageAutomationPeer(Image owner)

Exposes Image to UI Automation as an image element, but only once the consumer has given it an accessible name. An unnamed image is treated as decorative and is dropped from both the control and content views, so assistive technology never announces a bare unlabelled image element. Authority: WinUI keeps Image at AccessibilityView="Raw" until it is named, and Microsoft's UI Automation guidance is that decorative graphics stay out of the tree entirely. In-tree precedent: FontIconAutomationPeer for the both-views exclusion, and TextBlockAutomationPeer for keying that exclusion off the accessible name.

Remarks: Initializes a new instance of the ImageAutomationPeer class.

Parameter owner: The Image control represented by this automation peer.

Methods​

GetAutomationControlTypeCore​

protected override AutomationControlType GetAutomationControlTypeCore()

Documentation inherited from the FrameworkElementAutomationPeer API.

GetClassNameCore​

protected override string GetClassNameCore()

Documentation inherited from the FrameworkElementAutomationPeer API.

IsContentElementCore​

protected override bool IsContentElementCore()

Documentation inherited from the FrameworkElementAutomationPeer API.

IsControlElementCore​

protected override bool IsControlElementCore()

Documentation inherited from the FrameworkElementAutomationPeer API.