Visual Basic (Declaration) | |
---|---|
Public Shared Function FindResource(Of T)( _ ByVal start As FrameworkElement, _ ByVal name As String _ ) As T |
Parameters
- start
- a
FrameworkElement
- name
- the name of the desired resource
Type Parameters
- T
- the type of the desired resource
Return Value
the first object of type T found in searching theResourceDictionary
of the start element or in its parent elements, or null if no resource by that name is found, or if it is found but is not of the desired type.