ItemsControl.GetItemsOwner(DependencyObject) Method

Definition

Returns the ItemsControl that the specified element hosts items for.

Equivalent WinUI method: Microsoft.UI.Xaml.Controls.ItemsControl.GetItemsOwner.

 static ItemsControl GetItemsOwner(DependencyObject const & element);
public static ItemsControl GetItemsOwner(DependencyObject element);
function getItemsOwner(element)
Public Shared Function GetItemsOwner (element As DependencyObject) As ItemsControl

Parameters

element
DependencyObject

The host element.

Returns

ItemsControl

The ItemsControl that the specified element hosts items for, or null.

Applies to