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

ListView.PrepareContainerForItemOverride Method (DependencyObject, Object)

 

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

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

protected override void PrepareContainerForItemOverride(
	DependencyObject element,
	object item
)

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:
© 2017 Microsoft