Windows apps
Collapse the table of content
Expand the table of content
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.

Menu.PrepareContainerForItemOverride Method (DependencyObject, Object)


Prepares the specified element to display the specified item.

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

protected override void PrepareContainerForItemOverride(
	DependencyObject element,
	object item


Type: System.Windows.DependencyObject

The element used to display the specified item.

Type: System.Object

The item to display.

Preparing the element might involve applying styles, setting bindings, and so on.

.NET Framework
Available since 3.0
Return to top
© 2016 Microsoft