ListView::PrepareContainerForItemOverride Method (DependencyObject^, Object^)

 

Sets the styles, templates, and bindings for a ListViewItem.

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

protected:
virtual void PrepareContainerForItemOverride(
	DependencyObject^ element,
	Object^ item
) override

Parameters

element
Type: System.Windows::DependencyObject^

An object that is a ListViewItem or that can be converted into one.

item
Type: System::Object^

The object to use to create the ListViewItem.

This method prepares a ListViewItem control for display according to the specified View.

.NET Framework
Available since 3.0
Return to top
Show: