Namespace:
System.Windows
Assembly:
PresentationFramework (in PresentationFramework.dll)
Visual Basic (Declaration)
Protected Friend Function GetTemplateChild ( _
childName As String _
) As DependencyObject
Dim childName As String
Dim returnValue As DependencyObject
returnValue = Me.GetTemplateChild(childName)
protected internal DependencyObject GetTemplateChild(
string childName
)
protected public:
DependencyObject^ GetTemplateChild(
String^ childName
)
protected internal function GetTemplateChild(
childName : String
) : DependencyObject
You cannot use methods in XAML.
Return Value
Type:
System.Windows..::.DependencyObjectThe requested element. May be nullNothingnullptra null reference (Nothing in Visual Basic) if no element of the requested name exists.
FindName supplies the same function as this method. FindName is public instead of protected, and it uses correct name-scoping considerations that allow it to access the template within an element and find named items within it.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
.NET Framework
Supported in: 3.5, 3.0
Reference