TemplatePartAttribute attribute

Applies to Windows and Windows Phone

Represents an attribute that is applied to the class definition to identify the types of the named parts that are used for templating.

Inheritance

Object
  Attribute
    TemplatePartAttribute

Syntax


public sealed class TemplatePartAttribute : Attribute

Attributes

[AllowMultiple()]
[AttributeUsage(512)]
[Version(0x6020000)]

Members

The TemplatePartAttribute attribute has these types of members:

Constructors

The TemplatePartAttribute attribute has these constructors.

ConstructorDescription
TemplatePartAttribute Initializes a new instance of the TemplatePartAttribute class.

 

Fields

The TemplatePartAttribute attribute has these fields.

FieldData typeDescription
Name

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

Gets or sets the predefined name of the part.

Type

Type

Gets or sets the type of the named part that this attribute is identifying.

 

Methods

The TemplatePartAttribute attribute inherits methods from the Object class.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

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

Metadata

Windows.winmd

See also

Attribute
Quickstart: styling controls
Quickstart: control templates

 

 

Show:
© 2014 Microsoft