 | UIHelperFindFirstLogicalChildOfTypeAndNameT Method |
Searches in the LogicalTree of the FrameworkElement element
after the first child element of type T.
Namespace: Vishnu.ViewModelAssembly: Vishnu.ViewModel (in Vishnu.ViewModel.dll) Version: 1.0.0+df0404e911d6c38eaed3bb1bb1acfc482d417643
Syntaxpublic static T FindFirstLogicalChildOfTypeAndName<T>(
FrameworkElement element,
string? name
)
where T : FrameworkElement
Public Shared Function FindFirstLogicalChildOfTypeAndName(Of T As FrameworkElement) (
element As FrameworkElement,
name As String
) As T
public:
generic<type name T>
where T : FrameworkElement
static T FindFirstLogicalChildOfTypeAndName(
FrameworkElement^ element,
String^ name
)
static member FindFirstLogicalChildOfTypeAndName :
element : FrameworkElement *
name : string -> 'T when 'T : FrameworkElement
Parameters
- element FrameworkElement
- FrameworkElement whose LogicalTree is to be searched.
- name String
- Child.name or null.
Type parameters
- T
- Type of the child element searched for.
Return value
TChild element of type T or null.
See also