TreeView.NodeFromContainer(DependencyObject) Method

Definition

Returns the TreeViewNode corresponding to the specified container.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.TreeView.NodeFromContainer (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

TreeViewNode NodeFromContainer(DependencyObject const& container);
public TreeViewNode NodeFromContainer(DependencyObject container);
function nodeFromContainer(container)
Public Function NodeFromContainer (container As DependencyObject) As TreeViewNode

Parameters

container
DependencyObject

The container to retrieve the TreeViewNode for.

Returns

The node that corresponds to the specified container.

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Applies to