Udostępnij za pośrednictwem


ItemsControl.GetItemsOwner(DependencyObject) Method

Definition

Returns the ItemsControl that the specified element hosts items for.

 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

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

Applies to