Type Property
Collapse the table of content
Expand the table of content

TemplatePartAttribute.Type 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 Type of a template part.

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

public Type Type { get; set; }

Property Value

Type: System.Type
A Type object that reports the type of a template part.

The ControlTemplate should include an object element of the type referenced by the Type. In general when retemplating, the type should be that exact type, because use of that type was the stated intention of the control author. However, in some cases, it makes sense to use an element that inherits from Type.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft