FindChildOfType<T>(DependencyObject,String) Method
- Last UpdatedSep 29, 2026
- 1 minute read
Find dependency object based on child name
'Declaration
<ExtensionAttribute()>
Public Overloads Shared Function FindChildOfType(Of T As DependencyObject)( _
ByVal depObj As DependencyObject, _
ByVal childName As String _
) As T
[Extension()]
public static T FindChildOfType<T>(
DependencyObject depObj,
string childName
)
where T: DependencyObject
[Extension()]
public:
static T^ FindChildOfTypegeneric<typename T>
(
DependencyObject^ depObj,
String^ childName
)
where T: DependencyObject
Parameters
- depObj
- dependency object
- childName
- child object name
Type Parameters
- T
- Type of object
Return Value
returns child
Target Platforms:
- Windows 10 Enterprise, IoT Enterprise 2019 LTSC (1809)
- Windows 10 Enterprise 2021 LTSC (21H2)
- Windows 10 IoT Enterprise (Only) 2021 LTSC (21H2)
- Windows 11 Enterprise, IoT Enterprise 2024 LTSC 24H2
- Windows Server 2019 LTSC (Datacenter, Essentials, Standard)
- Windows Server IoT 2019 LTSC
- Windows Server 2022 LTSC Standard and Datacenter
- Windows Server 2025 LTSC Standard and Datacenter