ItemsControl.PrepareContainerForItemOverride(DependencyObject, Object) 方法

定义

准备指定元素以显示指定项。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

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

item
Object

指定项。Specified item.

注解

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

适用于