Interface IEmbeddedRootProvider
- 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 hosted by another UI framework.
public interface IEmbeddedRootProvider
Remarks
This interface can be implemented by an AutomationPeer, and is used to embed an automation tree from a 3rd party UI framework that wishes to use Avalonia's automation support.
Methods
GetFocus()
Gets the currently focused element.
AutomationPeer? GetFocus()
Returns
GetPeerFromPoint(Point)
Gets the element at the specified point, expressed in top-level coordinates.
AutomationPeer? GetPeerFromPoint(Point p)
Parameters
p
PointThe point.
Returns
Events
FocusChanged
Raised by the automation peer when the focus changes.
event EventHandler? FocusChanged