Redigeeri

Jagamisviis:


ListView.PrepareContainerForItemOverride(DependencyObject, Object) Method

Definition

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

protected:
 override void PrepareContainerForItemOverride(System::Windows::DependencyObject ^ element, System::Object ^ item);
protected override void PrepareContainerForItemOverride (System.Windows.DependencyObject element, object item);
override this.PrepareContainerForItemOverride : System.Windows.DependencyObject * obj -> unit
Protected Overrides Sub PrepareContainerForItemOverride (element As DependencyObject, item As Object)

Parameters

element
DependencyObject

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

item
Object

The object to use to create the ListViewItem.

Remarks

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

Applies to