Skip to main content

InheritDataTypeFromAttribute Class

Definition

Assembly:Avalonia.Base
Package:Avalonia

Attribute that instructs the compiler to resolve the data type using specific scope hints, such as Style or ControlTemplate.

public class InheritDataTypeFromAttribute

Inheritance: Attribute -> InheritDataTypeFromAttribute

Remarks

This attribute is used to configure markup extensions like TemplateBinding to properly parse AvaloniaProperty values, targeting a specific scope data type.

Constructors

NameDescription
InheritDataTypeFromAttributeInitializes 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

NameDescription
ScopeKindGets 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; }