Skip to main content

TemplatePartAttribute Properties

Properties

IsRequiredGets or sets a value indicating whether the template part is mandatory to be present in the template.
NameGets or sets the part name used by the class to identify a required element in the style. Template part names should begin with the "PART_" prefix.
TypeGets or sets the type of the element that should be used as a part with name specified in Name.
TypeIdWhen implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute)

See Also

Reference

TemplatePartAttribute Class
Avalonia.Controls.Metadata Namespace