Bewerken

Share via


ItemsControl.ItemsControlFromItemContainer(DependencyObject) Method

Definition

Returns the ItemsControl that owns the specified container element.

public:
 static System::Windows::Controls::ItemsControl ^ ItemsControlFromItemContainer(System::Windows::DependencyObject ^ container);
public static System.Windows.Controls.ItemsControl ItemsControlFromItemContainer (System.Windows.DependencyObject container);
static member ItemsControlFromItemContainer : System.Windows.DependencyObject -> System.Windows.Controls.ItemsControl
Public Shared Function ItemsControlFromItemContainer (container As DependencyObject) As ItemsControl

Parameters

container
DependencyObject

The container element to return the ItemsControl for.

Returns

The ItemsControl that owns the specified container element.

Applies to

See also