ItemsControl.GetItemsOwner(DependencyObject) ItemsControl.GetItemsOwner(DependencyObject) ItemsControl.GetItemsOwner(DependencyObject) ItemsControl.GetItemsOwner(DependencyObject) Method

Definition

Returns the ItemsControl that the specified element hosts items for.

public : static ItemsControl GetItemsOwner(DependencyObject element)
static ItemsControl GetItemsOwner(DependencyObject element) const;
public static ItemsControl GetItemsOwner(DependencyObject element)
Public Shared Function GetItemsOwner(element As DependencyObject) As ItemsControl

Parameters

element
DependencyObject DependencyObject

The host element.

Returns

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