共用方式為


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

適用於