Skip to main content

TemplatePartAttribute(String, Type) Constructor

Initializes a new instance of the TemplatePartAttribute class.

Definition

Namespace: Avalonia.Controls.Metadata
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public TemplatePartAttribute(
string name,
Type type
)

Parameters

  String
The part name used by the class to identify a required element in the style.
  Type
The type of the element that should be used as a part with name.

See Also

Reference

TemplatePartAttribute Class
TemplatePartAttribute Overload
Avalonia.Controls.Metadata Namespace