ItemsControl.ContainerFromElement メソッド

定義

指定されたコンテナー要素を所有する現在の ItemsControl に属するコンテナーを返します。

オーバーロード

名前 説明
ContainerFromElement(DependencyObject)

指定された要素を所有する現在の ItemsControl に属するコンテナーを返します。

ContainerFromElement(ItemsControl, DependencyObject)

指定したコンテナー要素を所有する指定した ItemsControl に属するコンテナーを返します。

ContainerFromElement(DependencyObject)

指定された要素を所有する現在の ItemsControl に属するコンテナーを返します。

public:
 System::Windows::DependencyObject ^ ContainerFromElement(System::Windows::DependencyObject ^ element);
public System.Windows.DependencyObject ContainerFromElement(System.Windows.DependencyObject element);
member this.ContainerFromElement : System.Windows.DependencyObject -> System.Windows.DependencyObject
Public Function ContainerFromElement (element As DependencyObject) As DependencyObject

パラメーター

element
DependencyObject

コンテナーを返す要素。

返品

特定の要素を所有する現在の ItemsControl に属するコンテナー。そのようなコンテナーが存在しない場合は null

こちらもご覧ください

適用対象

ContainerFromElement(ItemsControl, DependencyObject)

指定したコンテナー要素を所有する指定した ItemsControl に属するコンテナーを返します。

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

パラメーター

itemsControl
ItemsControl

コンテナーを返す ItemsControl

element
DependencyObject

コンテナーを返す要素。

返品

指定した要素を所有する、指定した ItemsControl に属するコンテナー ( itemsControlnullされていない場合)。 itemsControlnullされている場合は、任意のItemsControlに属する最も近いコンテナーを返します。

こちらもご覧ください

適用対象