TextElement.OnCreateAutomationPeer Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Returns a class-specific AutomationPeer implementation for use by the Windows Phone automation infrastructure.
Assembly: System.Windows (in System.Windows.dll)
Return Value
Type: System.Windows.Automation.Peers.AutomationPeerA type-specific AutomationPeer for the TextElement object.
The implementation of this method is typically to call the constructor of a specific AutomationPeer implementation, and return it as the return value.
All TextElement derived classes should implement this method in order to provide their own specific AutomationPeer implementations to the Windows Phone infrastructure. For details on implementing this pattern, see AutomationPeer.