IStyleHost Interface
Definition
Defines an element that has a Avalonia.Styling.IStyleHost.Styles collection.
public interface IStyleHost
Methods
| Name | Description |
|---|---|
| StylesAdded | No summary available. |
| StylesRemoved | No 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
| Name | Description |
|---|---|
| IsStylesInitialized | Gets a value indicating whether Avalonia.Styling.IStyleHost.Styles is initialized. |
| Styles | Gets the styles for the element. |
| StylingParent | Gets 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; }