Esta documentación está archivada y no tiene mantenimiento.

TemplatePartAttribute (Clase)

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

Espacio de nombres: System.Windows
Ensamblado: PresentationFramework (en presentationframework.dll)
Espacio de nombres XML:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple=true)] 
public sealed class TemplatePartAttribute : Attribute
/** @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

System.Object
   System.Attribute
    System.Windows.TemplatePartAttribute

Los miembros estáticos públicos (Shared en Visual Basic) de este tipo son seguros para la ejecución de subprocesos. No se garantiza que los miembros de instancias sean seguros para la ejecución de subprocesos.

Microsoft .NET Framework 3.0 es compatible con Windows Vista, Microsoft Windows XP SP2 y Windows Server 2003 SP1.

.NET Framework

Compatible con: 3.0
Mostrar: