Click or drag to resize

UIHelperFindFirstVisualChildOfTypeAfterVisualChildOfTypeAndNameT, U Method

Searches in the VisualTree of the FrameworkElement element for the first child element of type T, which follows a child element of type 'predecessorType' with the name 'predecessorName'.

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

Parameters

element  FrameworkElement
FrameworkElement whose VisualTree is to be searched.
predecessorName  String
Name of the element preceding the searched element.

Type parameters

T
Type of the child element you are looking for.
U
Type of the child element whose child is being searched for.

Return value

T
Child child element of type T.
See also