ItemsControl.GetItemsOwner(DependencyObject) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定した要素が項目をホストする 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スタイルのtrueでelementに設定されている場合、またはelementがItemsPresenterのItemsControlによって作成されたパネルである場合は、ItemsControlが返されます。それ以外の場合は、null。