다음을 통해 공유


TemplatePartAttribute.Type Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets a string that reports the Type of a template part.

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

Syntax

'Declaration
Public Property Type As Type
public Type Type { get; set; }

Property Value

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

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

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

Platforms

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