ItemsControl.ContainerFromElement メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定されたコンテナー要素を所有する現在の 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 に属するコンテナー ( itemsControl が nullされていない場合)。
itemsControlがnullされている場合は、任意のItemsControlに属する最も近いコンテナーを返します。