Name Property
Collapse the table of content
Expand the table of content

TemplatePartAttribute.Name Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets a string that reports the object model name of a template part.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)

public string Name { get; set; }

Property Value

Type: System.String
A string that should be used as the name of a template part in a template.

The Name value of a given template part should be set as the Name or x:Name attribute value on the object element that instantiates the template part in the new control template XAML. Otherwise, the control might not function correctly.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft