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
PlatformImpl
Gets the platform implementation of the TopLevel for the element.
public ITopLevelImpl? PlatformImpl { get; }
Property Value
Methods
GetAutomationControlTypeCore()
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
GetFocus()
Gets the currently focused element.
public AutomationPeer? GetFocus()
Returns
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
PointThe point.
Returns
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
Remarks
Windows |
UIA_AutomationFocusChangedEventId
|
macOS |
NSAccessibilityFocusedUIElementChangedNotification
|