Export (0) Print
Expand All

TextElement.OnCreateAutomationPeer Method

Silverlight

Returns a class-specific AutomationPeer implementation for use by the Silverlight automation infrastructure.

Namespace:  System.Windows.Documents
Assembly:  System.Windows (in System.Windows.dll)

protected virtual AutomationPeer OnCreateAutomationPeer()

Return Value

Type: System.Windows.Automation.Peers.AutomationPeer
A type-specific AutomationPeer for the TextElement object.

Notes to Inheritors

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 Silverlight infrastructure. For details on implementing this pattern, see AutomationPeer.

Silverlight

Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft