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

定义

返回一个值,该值指示是否将来自 ItemContainerStyleItemContainerStyleSelector 属性的样式应用到指定项的容器元素。Returns a value that indicates whether to apply the style from the ItemContainerStyle or ItemContainerStyleSelector property to the container element of the specified item.

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 DependencyObject DependencyObject DependencyObject

容器元素。The container element.

item
Object Object Object Object

相关项。The item of interest.

返回

对于基实现始终为 trueAlways true for the base implementation.

适用于