This topic has not yet been rated - Rate this topic

TemplatePartAttribute.Type Property

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.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.