PrepareContainerForItemOverride Method

TreeViewItem.PrepareContainerForItemOverride Method

Prepares the specified container element to display the specified item.

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

protected override void PrepareContainerForItemOverride(
	DependencyObject element,
	Object item
)

Parameters

element
Type: System.Windows.DependencyObject
Container element used to display the specified item.
item
Type: System.Object
The item to display.

The PrepareContainerForItemOverride method applies the correct property settings from the parent TreeView control to the container element.

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

ADD
Show:
© 2016 Microsoft