Table of Contents

Interface IStyleable

Namespace
Avalonia.Styling
Assembly
Avalonia.Base.dll

Interface for styleable elements.

[Obsolete("This interface may be removed in 12.0. Use StyledElement, or override StyledElement.StyleKeyOverride to override the StyleKey for a class.")]
public interface IStyleable : INamed
Inherited Members

Properties

Classes

Gets the list of classes for the control.

IAvaloniaReadOnlyList<string> Classes { get; }

Property Value

IAvaloniaReadOnlyList<string>

StyleKey

Gets the type by which the control is styled.

[Obsolete("Override StyledElement.StyleKeyOverride instead.")]
Type StyleKey { get; }

Property Value

Type

TemplatedParent

Gets the template parent of this element if the control comes from a template.

AvaloniaObject? TemplatedParent { get; }

Property Value

AvaloniaObject