ItemsControl.ItemFromContainer(DependencyObject) ItemsControl.ItemFromContainer(DependencyObject) ItemsControl.ItemFromContainer(DependencyObject) ItemsControl.ItemFromContainer(DependencyObject) Method

Definition

Returns the item that corresponds to the specified, generated container.

public : Platform::Object ItemFromContainer(DependencyObject container)
winrt::Windows::Foundation::IInspectable ItemFromContainer(DependencyObject container) const;
public object ItemFromContainer(DependencyObject container)
Public Function ItemFromContainer(container As DependencyObject) As object

Parameters

container
DependencyObject DependencyObject

The DependencyObject that corresponds to the item to be returned.

Returns

object object

The contained item, or the container if it does not contain an item.