TemplatePartAttribute Class
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace: http://schemas.microsoft.com/winfx/2006/xaml/presentation
'Declaration <AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple:=True)> _ Public NotInheritable Class TemplatePartAttribute Inherits Attribute 'Usage Dim instance As TemplatePartAttribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple=true) */ public final class TemplatePartAttribute extends Attribute
AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple=true) public final class TemplatePartAttribute extends Attribute
You cannot use this class or its properties in XAML.
Control authors apply this attribute to the class definition to inform template authors the types of the parts to use for styling the class. These parts are usually required in the template and have a specific predefined name. There can only be one element with a given name in any template.
For example, if you look at the class declaration of the ComboBox class, you can see that the parts PART_EditableTextBox and PART_Popup are of types TextBox and Popup respectively.
For more information, see Guidelines for Designing Stylable Controls
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.