AutomationPeer.PeerFromProvider Method
Silverlight
Gets an AutomationPeer for the specified IRawElementProviderSimple proxy.
Namespace: System.Windows.Automation.Peers
Assembly: System.Windows (in System.Windows.dll)
Parameters
- provider
- Type: System.Windows.Automation.Provider.IRawElementProviderSimple
The class that implements IRawElementProviderSimple.
Return Value
Type: System.Windows.Automation.Peers.AutomationPeerThe AutomationPeer for the specified IRawElementProviderSimple proxy.
This method is relevant for cases when you obtain a IRawElementProviderSimple pointer from a UI Automation method such as GetItem, and want the specific item's peer.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.