Lingua

ItemsControl.ContainerFromElement Metodo

Definizione

Restituisce il contenitore che appartiene all'oggetto corrente ItemsControl proprietario dell'elemento contenitore specificato.

Overload

Nome Descrizione
ContainerFromElement(DependencyObject)

Restituisce il contenitore che appartiene all'oggetto corrente ItemsControl proprietario dell'elemento specificato.

ContainerFromElement(ItemsControl, DependencyObject)

Restituisce il contenitore che appartiene all'oggetto specificato ItemsControl proprietario dell'elemento contenitore specificato.

ContainerFromElement(DependencyObject)

Restituisce il contenitore che appartiene all'oggetto corrente ItemsControl proprietario dell'elemento specificato.

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

Parametri

element
DependencyObject

Elemento per cui restituire il contenitore.

Valori restituiti

Contenitore appartenente all'oggetto corrente ItemsControl proprietario dell'elemento specificato o null se tale contenitore non esiste.

Vedi anche

Si applica a

ContainerFromElement(ItemsControl, DependencyObject)

Restituisce il contenitore che appartiene all'oggetto specificato ItemsControl proprietario dell'elemento contenitore specificato.

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

Parametri

itemsControl
ItemsControl

Oggetto ItemsControl per cui restituire il contenitore.

element
DependencyObject

Elemento per cui restituire il contenitore.

Valori restituiti

Contenitore che appartiene all'oggetto specificato ItemsControl proprietario dell'elemento specificato, se itemsControl non nullè . Se itemsControl è null, restituisce il contenitore più vicino che appartiene a qualsiasi ItemsControloggetto .

Vedi anche

Si applica a