TreeView.NodeFromContainer(DependencyObject) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
|