 | UIHelperFindFirstVisualChildOfTypeAndNameT Method |
Searches in the VisualTree of the FrameworkElement element
after the first child element of type T with name == name.
Namespace: Vishnu.ViewModelAssembly: Vishnu.ViewModel (in Vishnu.ViewModel.dll) Version: 1.0.0+df0404e911d6c38eaed3bb1bb1acfc482d417643
Syntaxpublic static T FindFirstVisualChildOfTypeAndName<T>(
FrameworkElement element,
string? name
)
where T : FrameworkElement
Public Shared Function FindFirstVisualChildOfTypeAndName(Of T As FrameworkElement) (
element As FrameworkElement,
name As String
) As T
public:
generic<type name T>
where T : FrameworkElement
static T FindFirstVisualChildOfTypeAndName(
FrameworkElement^ element,
String^ name
)
static member FindFirstVisualChildOfTypeAndName :
element : FrameworkElement *
name : string -> 'T when '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
TChild element of type T (and if specified, with name == name) or null.
See also