TreeView.ItemFromContainer(DependencyObject) TreeView.ItemFromContainer(DependencyObject) TreeView.ItemFromContainer(DependencyObject) TreeView.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.

Additional features and requirements

Device family
Windows 10, version 1809 (introduced v10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v7)