Table of Contents

Class WindowBaseAutomationPeer

Namespace
Avalonia.Automation.Peers
Assembly
Avalonia.Controls.dll
public class WindowBaseAutomationPeer : ControlAutomationPeer, IRootProvider
Inheritance
WindowBaseAutomationPeer
Implements
Derived
Inherited Members

Constructors

WindowBaseAutomationPeer(WindowBase)

public WindowBaseAutomationPeer(WindowBase owner)

Parameters

owner WindowBase

Properties

Owner

public WindowBase Owner { get; }

Property Value

WindowBase

PlatformImpl

Gets the platform implementation of the TopLevel for the element.

public ITopLevelImpl? PlatformImpl { get; }

Property Value

ITopLevelImpl

Methods

GetAutomationControlTypeCore()

protected override AutomationControlType GetAutomationControlTypeCore()

Returns

AutomationControlType

GetFocus()

Gets the currently focused element.

public AutomationPeer? GetFocus()

Returns

AutomationPeer

Remarks

Windows IRawElementProviderFragmentRoot.GetFocus
macOS UIAccessibility.accessibilityFocusedUIElement

GetPeerFromPoint(Point)

Gets the element at the specified point, expressed in top-level coordinates.

public AutomationPeer? GetPeerFromPoint(Point p)

Parameters

p Point

The point.

Returns

AutomationPeer

Remarks

Windows IRawElementProviderFragmentRoot.ElementProviderFromPoint
macOS UIAccessibility.accessibilityHitTest

StartTrackingFocus()

protected void StartTrackingFocus()

StopTrackingFocus()

protected void StopTrackingFocus()

Events

FocusChanged

Raised by the automation peer when the focus changes.

public event EventHandler? FocusChanged

Event Type

EventHandler

Remarks

Windows UIA_AutomationFocusChangedEventId
macOS NSAccessibilityFocusedUIElementChangedNotification