Share via


TreeView.NodeFromContainer(DependencyObject) Method

Definition

Returns the TreeViewNode corresponding to the specified container.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

TreeViewNode NodeFromContainer(DependencyObject const& container);
public TreeViewNode NodeFromContainer(DependencyObject 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.

Applies to