Skip to main content

IStyleHost Interface

Definition

Assembly:Avalonia.Base
Package:Avalonia

Defines an element that has a Avalonia.Styling.IStyleHost.Styles collection.

public interface IStyleHost

Methods

NameDescription
StylesAddedNo summary available.
StylesRemovedNo summary available.

StylesAdded Method

public void StylesAdded(System.Collections.Generic.IReadOnlyList<Avalonia.Styling.IStyle> styles)

Parameters

styles System.Collections.Generic.IReadOnlyList<Avalonia.Styling.IStyle>

StylesRemoved Method

public void StylesRemoved(System.Collections.Generic.IReadOnlyList<Avalonia.Styling.IStyle> styles)

Parameters

styles System.Collections.Generic.IReadOnlyList<Avalonia.Styling.IStyle>

Properties

NameDescription
IsStylesInitializedGets a value indicating whether Avalonia.Styling.IStyleHost.Styles is initialized.
StylesGets the styles for the element.
StylingParentGets the parent style host element.

IsStylesInitialized Property

Gets a value indicating whether Avalonia.Styling.IStyleHost.Styles is initialized.

public bool IsStylesInitialized { get; set; }

Remarks

The Avalonia.Styling.IStyleHost.Styles property may be lazily initialized, if so this property indicates whether it has been initialized.

Styles Property

Gets the styles for the element.

public Avalonia.Styling.Styles Styles { get; set; }

StylingParent Property

Gets the parent style host element.

public Avalonia.Styling.IStyleHost StylingParent { get; set; }