ItemsControl.ContainerFromElement Metoda

Definicja

Zwraca kontener należący do bieżącego ItemsControl , który jest właścicielem danego elementu kontenera.

Przeciążenia

ContainerFromElement(DependencyObject)

Zwraca kontener należący do bieżącego ItemsControl , który jest właścicielem danego elementu.

ContainerFromElement(ItemsControl, DependencyObject)

Zwraca kontener należący do określonego ItemsControl , który jest właścicielem danego elementu kontenera.

ContainerFromElement(DependencyObject)

Zwraca kontener należący do bieżącego ItemsControl , który jest właścicielem danego elementu.

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

Parametry

element
DependencyObject

Element, dla który ma zwrócić kontener.

Zwraca

DependencyObject

Kontener należący do bieżącego ItemsControl , który jest właścicielem danego elementu lub null jeśli taki kontener nie istnieje.

Zobacz też

Dotyczy

ContainerFromElement(ItemsControl, DependencyObject)

Zwraca kontener należący do określonego ItemsControl , który jest właścicielem danego elementu kontenera.

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

Parametry

itemsControl
ItemsControl

Element ItemsControl , dla który ma zwrócić kontener.

element
DependencyObject

Element, dla który ma zwrócić kontener.

Zwraca

DependencyObject

Kontener należący do określonego ItemsControl , który jest właścicielem danego elementu, jeśli itemsControl nie nulljest . Jeśli itemsControl parametr ma nullwartość , zwraca najbliższy kontener, który należy do dowolnego ItemsControlkontenera .

Zobacz też

Dotyczy