ControlAutomationPeerCreatePeerForElement Method
Namespace: Avalonia.Automation.PeersAssembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public static AutomationPeer CreatePeerForElement(
Control element
)
Public Shared Function CreatePeerForElement (
element As Control
) As AutomationPeer
static member CreatePeerForElement :
element : Control -> AutomationPeer
- element Control
- The control.
AutomationPeerThe automation peer.
Despite the name (which comes from the analogous WPF API), this method does not create
a new peer if one already exists: instead it returns the existing peer.