Linguaggio

ItemsControl.GetItemsOwner(DependencyObject) Metodo

Definizione

Restituisce l'oggetto per il quale l'elemento ItemsControl specificato ospita gli elementi.

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

Parametri

element
DependencyObject

Elemento host.

Valori restituiti

Oggetto ItemsControl che l'elemento specificato ospita gli elementi per o null.

Commenti

Se IsItemsHost è impostato su trueelement su in uno stile o se element è un pannello creato da ItemsPresenter per un ItemsControloggetto , viene ItemsControl restituito . In caso contrario, null.

Si applica a