Control.GetTemplateChild method

Expand
This topic has not yet been rated - Rate this topic

Control.GetTemplateChild method

[This documentation is preliminary and is subject to change.]

Retrieves the named element in the instantiated ControlTemplate visual tree.

Syntax


protected DependencyObject GetTemplateChild(
  string childName
)

Parameters

childName

Type: System.String [.NET] | Platform::String [C++]

The name of the element to find.

Return value

Type: DependencyObject

The named element from the template, if the element is found. Can return null if no element with name childName was found in the template.

Requirements

Minimum supported client

Windows 8 Release Preview

Minimum supported server

Windows Server 2012

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

Control

 

 

Build date: 5/22/2012

Did you find this helpful?
(1500 characters remaining)
Community Additions ADD