Export (0) Print
Expand All

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.

Community Additions

Show:
© 2014 Microsoft