[]
        
(Showing Draft Content)

C1.WPF.VTreeHelper.GetChildOfType

GetChildOfType Method

GetChildOfType(DependencyObject, Type)

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

Declaration
public static DependencyObject GetChildOfType(DependencyObject reference, Type type)
Public Shared Function GetChildOfType(reference As DependencyObject, type As Type) As DependencyObject
Parameters
Type Name Description
DependencyObject reference

The parent visual, referenced as a DependencyObject.

Type type

The Type of the children element to search for.

Returns
Type Description
DependencyObject

The visual object of the specified type.