IStyleHost Interface
Not client implementable.
Note: This interface is not client implementable. You need to enable PrivateApi if you want to implement this interface.
Defines an element that has a Styles collection.
Definition
Namespace: Avalonia.Styling
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
[NotClientImplementableAttribute]
public interface IStyleHost
<NotClientImplementableAttribute>
Public Interface IStyleHost
[<NotClientImplementableAttribute>]
type IStyleHost = interface end
Properties
IsStylesInitialized | Gets a value indicating whether Styles is initialized. |
Styles | Gets the styles for the element. |
StylingParent | Gets the parent style host element. |
Methods
StylesAdded(IReadOnlyList(IStyle)) | Called when styles are added to Styles or a nested styles collection. |
StylesRemoved(IReadOnlyList(IStyle)) | Called when styles are removed from Styles or a nested styles collection. |