Class InheritDataTypeFromAttribute
Attribute that instructs the compiler to resolve the data type using specific scope hints, such as Style or ControlTemplate.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Parameter, AllowMultiple = false, Inherited = true)]
public sealed class InheritDataTypeFromAttribute : Attribute
- Inheritance
-
InheritDataTypeFromAttribute
- Inherited Members
Remarks
This attribute is used to configure markup extensions like TemplateBinding to properly parse AvaloniaProperty values, targeting a specific scope data type.
Constructors
InheritDataTypeFromAttribute(InheritDataTypeFromScopeKind)
Initializes a new instance of the InheritDataTypeFromAttribute class with the specified scope kind.
public InheritDataTypeFromAttribute(InheritDataTypeFromScopeKind scopeKind)
Parameters
scopeKind
InheritDataTypeFromScopeKindThe kind of scope from which to inherit the data type.
Properties
ScopeKind
Gets the kind of scope from which the data type should be inherited.
public InheritDataTypeFromScopeKind ScopeKind { get; }