ContextMenu::PrepareContainerForItemOverride Method (DependencyObject^, Object^)
.NET Framework (current version)
Prepares the specified element to display the specified item.
Assembly: PresentationFramework (in PresentationFramework.dll)
protected: virtual void PrepareContainerForItemOverride( DependencyObject^ element, Object^ item ) override
Parameters
- element
-
Type:
System.Windows::DependencyObject^
Element used to display the specified item.
- item
-
Type:
System::Object^
Specified item.
Preparing the element may involve applying styles, setting bindings, and so on.
.NET Framework
Available since 3.0
Available since 3.0
Show: