InheritDataTypeFromAttribute Class
Definition
Attribute that instructs the compiler to resolve the data type using specific scope hints, such as Style or ControlTemplate.
public class InheritDataTypeFromAttribute
Remarks
This attribute is used to configure markup extensions like TemplateBinding to properly parse AvaloniaProperty values, targeting a specific scope data type.
Constructors
| Name | Description |
|---|---|
| InheritDataTypeFromAttribute | Initializes a new instance of the Avalonia.Metadata.InheritDataTypeFromAttribute class with the specified scope kind. |
InheritDataTypeFromAttribute Constructor
Initializes a new instance of the Avalonia.Metadata.InheritDataTypeFromAttribute class with the specified scope kind.
public InheritDataTypeFromAttribute(Avalonia.Metadata.InheritDataTypeFromScopeKind scopeKind)
Parameters
scopeKind Avalonia.Metadata.InheritDataTypeFromScopeKind
The kind of scope from which to inherit the data type.
Properties
| Name | Description |
|---|---|
| ScopeKind | Gets the kind of scope from which the data type should be inherited. |
ScopeKind Property
Gets the kind of scope from which the data type should be inherited.
public Avalonia.Metadata.InheritDataTypeFromScopeKind ScopeKind { get; set; }