Click or drag to resize

UIHelperFindFirstVisualParentOfTypeAndNameT Method

Searches in the VisualTree from the FrameworkElement element upwards after the first parent 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 FindFirstVisualParentOfTypeAndName<T>(
	
	FrameworkElement element,
	
	string? name
)
where T : FrameworkElement

Parameters

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

Type parameters

T
Type of parent element searched for.

Return value

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