Click or drag to resize

UIHelperFindFirstVisualChildOfTypeAndNameT Method

Searches in the VisualTree of the FrameworkElement element after the first child element of type T with name == name.

Namespace: Vishnu.ViewModel
Assembly: Vishnu.ViewModel (in Vishnu.ViewModel.dll) Version: 1.0.0+df0404e911d6c38eaed3bb1bb1acfc482d417643
Syntax
public static T FindFirstVisualChildOfTypeAndName<T>(
	
	FrameworkElement element,
	
	string? name
)
where T : FrameworkElement

Parameters

element  FrameworkElement
FrameworkElement whose VisualTree is to be searched.
name  String
Name of the child element searched for or null.

Type parameters

T
Type of the child element searched for.

Return value

T
Child element of type T (and if specified, with name == name) or null.
See also