ItemsControl.PrepareContainerForItemOverride(DependencyObject, Object) ItemsControl.PrepareContainerForItemOverride(DependencyObject, Object) ItemsControl.PrepareContainerForItemOverride(DependencyObject, Object) ItemsControl.PrepareContainerForItemOverride(DependencyObject, Object) Method

定义

准备指定元素以显示指定项。Prepares the specified element to display the specified item.

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

参数

element
DependencyObject DependencyObject DependencyObject DependencyObject

用于显示指定项的元素。Element used to display the specified item.

item
Object Object Object Object

指定项。Specified item.

注解

元素的准备工作可能涉及应用样式、 设置的绑定,等等。Preparing the element may involve applying styles, setting bindings, and so on.

适用于