ItemsControl.ShouldApplyItemContainerStyle(DependencyObject, Object) 方法

定义

返回一个值,该值表示是否将属性 ItemContainerStyleItemContainerStyleSelector 的样式应用到指定的项的容器元素。

protected:
 virtual bool ShouldApplyItemContainerStyle(System::Windows::DependencyObject ^ container, System::Object ^ item);
protected virtual bool ShouldApplyItemContainerStyle (System.Windows.DependencyObject container, object item);
abstract member ShouldApplyItemContainerStyle : System.Windows.DependencyObject * obj -> bool
override this.ShouldApplyItemContainerStyle : System.Windows.DependencyObject * obj -> bool
Protected Overridable Function ShouldApplyItemContainerStyle (container As DependencyObject, item As Object) As Boolean

参数

container
DependencyObject

容器元素。

item
Object

感兴趣的项。

返回

对于基本实现,始终为 true

适用于