 | 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.ViewModelAssembly: Vishnu.ViewModel (in Vishnu.ViewModel.dll) Version: 1.0.0+df0404e911d6c38eaed3bb1bb1acfc482d417643
Syntaxpublic static T FindFirstVisualChildOfTypeAfterVisualChildOfTypeAndName<T, U>(
FrameworkElement element,
string predecessorName
)
where T : FrameworkElement
where U : FrameworkElement
Public Shared Function FindFirstVisualChildOfTypeAfterVisualChildOfTypeAndName(Of T As FrameworkElement, U As FrameworkElement) (
element As FrameworkElement,
predecessorName As String
) As T
public:
generic<type name T, type name U>
where T : FrameworkElement
where U : FrameworkElement
static T FindFirstVisualChildOfTypeAfterVisualChildOfTypeAndName(
FrameworkElement^ element,
String^ predecessorName
)
static member FindFirstVisualChildOfTypeAfterVisualChildOfTypeAndName :
element : FrameworkElement *
predecessorName : string -> 'T when 'T : FrameworkElement when '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
TChild child element of type T.
See also