ItemsControl.ShouldApplyItemContainerStyle(DependencyObject, Object) メソッド
定義
指定された項目のコンテナー要素に対して、ItemContainerStyle プロパティまたは ItemContainerStyleSelector プロパティからのスタイルを適用するかどうかを示す値を返します。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.
戻り値
基本実装では、常に true
です。Always true
for the base implementation.