Sdílet prostřednictvím


TreeViewItemAutomationPeer.GetNameCore Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Returns the UI Automation Name of the item that is associated with thisTreeViewItemAutomationPeer. This method is called by GetName().

Namespace:  System.Windows.Automation.Peers
Assembly:  System.Windows.Controls (in System.Windows.Controls.dll)

Syntax

'Declaration
Protected Overrides Function GetNameCore As String
protected override string GetNameCore()

Return Value

Type: System.String
The UI Automation Name of the object that is associated with this automation peer.

Remarks

The default implementation attempts to obtain a string from the Header representation of the content. If no such string is available, the base FrameworkElementAutomationPeer implementation is invoked.

Version Information

Silverlight

Supported in: 5

Platforms

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