ItemsControl.GetItemsOwner(DependencyObject) メソッド

定義

指定した要素が項目をホストする ItemsControl を返します。

public:
 static System::Windows::Controls::ItemsControl ^ GetItemsOwner(System::Windows::DependencyObject ^ element);
public static System.Windows.Controls.ItemsControl GetItemsOwner(System.Windows.DependencyObject element);
static member GetItemsOwner : System.Windows.DependencyObject -> System.Windows.Controls.ItemsControl
Public Shared Function GetItemsOwner (element As DependencyObject) As ItemsControl

パラメーター

element
DependencyObject

ホスト要素。

返品

指定した要素が項目をホストする ItemsControl 、または null

注釈

IsItemsHostスタイルのtrueelementに設定されている場合、またはelementItemsPresenterItemsControlによって作成されたパネルである場合は、ItemsControlが返されます。それ以外の場合は、null

適用対象