TemplatePartAttribute(String, Type) Constructor
Initializes a new instance of the TemplatePartAttribute class.
Definition
Namespace: Avalonia.Controls.Metadata
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public TemplatePartAttribute(
string name,
Type type
)
Public Sub New (
name As String,
type As Type
)
new :
name : string *
type : Type -> TemplatePartAttribute
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