ItemsControl.GetItemsOwner(DependencyObject) Metodo

Definizione

Restituisce l'oggetto ItemsControl per cui l'elemento 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.

Restituisce

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

Commenti

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

Si applica a