ItemsControl.ShouldApplyItemContainerStyle(DependencyObject, Object) 方法

定義

傳回值,指出是否要將來自 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

容器項目。The container element.

item
Object

相關項目。The item of interest.

傳回

Boolean

對於基底實作,一律為 trueAlways true for the base implementation.

適用於