Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TreeView.GetContainerForItemOverride Method

Creates a TreeViewItem to display content.

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

protected override DependencyObject GetContainerForItemOverride()

Return Value

Type: System.Windows.DependencyObject
A TreeViewItem to use as a container for content.

Use this method when you need the TreeView to use a container object other than TreeViewItem objects. You override this method in a derived class and return a custom item container.

Silverlight

Supported in: 5, 4, 3

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft