Skip to main content

IGlobalStyles Interface

Not client implementable.

Note: This interface is not client implementable. You need to enable PrivateApi if you want to implement this interface.

Defines the style host that provides styles global to the application.

Definition

Namespace: Avalonia.Styling
Assembly: Avalonia.Base (in Avalonia.Base.dll)

[NotClientImplementableAttribute]
public interface IGlobalStyles : IStyleHost
View Source
ImplementsIStyleHost

Properties

IsStylesInitializedGets a value indicating whether Styles is initialized.
(Inherited from IStyleHost)
StylesGets the styles for the element.
(Inherited from IStyleHost)
StylingParentGets the parent style host element.
(Inherited from IStyleHost)

Methods

StylesAdded(IReadOnlyList(IStyle))Called when styles are added to Styles or a nested styles collection.
(Inherited from IStyleHost)
StylesRemoved(IReadOnlyList(IStyle))Called when styles are removed from Styles or a nested styles collection.
(Inherited from IStyleHost)

Events

GlobalStylesAddedRaised when styles are added to Styles or a nested styles collection.
GlobalStylesRemovedRaised when styles are removed from Styles or a nested styles collection.

See Also

Reference

Avalonia.Styling Namespace