[]
        
(Showing Draft Content)

C1.WinUI.Core.VTreeHelper

VTreeHelper Class

The VTreeHelper class provides utility methods that perform common tasks involving nodes in a visual tree.

Inheritance
VTreeHelper
Namespace: C1.WinUI.Core
Assembly: C1.WinUI.Core.dll
Syntax
public static class VTreeHelper

Methods

Name Description
GetChildOfType(DependencyObject, Type)

Returns the first child visual object of the specified type within a specified parent.

GetChildrenOfType(DependencyObject, Type, ref IList<DependencyObject>)

Returns all children visual objects of the specified type within a specified parent.

GetFirstParent(DependencyObject, IList<Type>, DependencyObject)

Returns a Microsoft.UI.Xaml.DependencyObject value that represents the first parent of the visual object which type is one of the specified tyles. Method looks up the visual tree until the desired parent element is found or parent element is equal to the specified endObject.

GetParentOfType(DependencyObject, Type)

Returns a Microsoft.UI.Xaml.DependencyObject value that represents the parent of the visual object of the specified type. Method looks up the visual tree until the desired parent element is found or parent element is null.

GetParentOfType(DependencyObject, Type, DependencyObject)

Returns a Microsoft.UI.Xaml.DependencyObject value that represents the parent of the visual object of the specified type. Method looks up the visual tree until the desired parent element is found or parent element is equal to the specified endObject.

GetParentOfType(DependencyObject, Type, DependencyObject, bool)

Returns a Microsoft.UI.Xaml.DependencyObject value that represents the parent of the visual object of the specified type. Method looks up the visual tree until the desired parent element is found or parent element is equal to the specified endObject.

GetParentOfType(DependencyObject, Type, bool)

Returns a Microsoft.UI.Xaml.DependencyObject value that represents the parent of the visual object of the specified type. Method looks up the visual tree until the desired parent element is found or parent element is null.