Interface IRootProvider
- Namespace
- Avalonia.Automation.Provider
- Assembly
- Avalonia.Controls.dll
Exposes methods and properties to support UI Automation client access to the root of an automation tree.
public interface IRootProvider
Remarks
This interface is implemented by the AutomationPeer class, and should only be implemented on true root elements, such as Windows. To embed an automation tree, use IEmbeddedRootProvider instead.
Properties
PlatformImpl
Gets the platform implementation of the TopLevel for the element.
ITopLevelImpl? PlatformImpl { get; }
Property Value
Methods
GetFocus()
Gets the currently focused element.
AutomationPeer? GetFocus()
Returns
Remarks
Windows |
IRawElementProviderFragmentRoot.GetFocus
|
macOS |
UIAccessibility.accessibilityFocusedUIElement
|
GetPeerFromPoint(Point)
Gets the element at the specified point, expressed in top-level coordinates.
AutomationPeer? GetPeerFromPoint(Point p)
Parameters
p
PointThe point.
Returns
Remarks
Windows |
IRawElementProviderFragmentRoot.ElementProviderFromPoint
|
macOS |
UIAccessibility.accessibilityHitTest
|
Events
FocusChanged
Raised by the automation peer when the focus changes.
event EventHandler? FocusChanged
Event Type
Remarks
Windows |
UIA_AutomationFocusChangedEventId
|
macOS |
NSAccessibilityFocusedUIElementChangedNotification
|