FrameworkElementAutomationPeer.FromElement Method
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Returns the FrameworkElementAutomationPeer for the specified UIElement.
Assembly: System.Windows (in System.Windows.dll)
Parameters
- element
- Type: System.Windows.UIElement
The UIElement that is associated with this FrameworkElementAutomationPeer.
Return Value
Type: System.Windows.Automation.Peers.AutomationPeerThe FrameworkElementAutomationPeer, or null if the FrameworkElementAutomationPeer was not created by the CreatePeerForElement method.
| Exception | Condition |
|---|---|
| ArgumentNullException | element is null. |
Show: