|
|
|
@ -97,8 +97,8 @@ namespace Avalonia.Controls |
|
|
|
private bool _isAttachedToLogicalTree; |
|
|
|
private IAvaloniaList<ILogical> _logicalChildren; |
|
|
|
private INameScope _nameScope; |
|
|
|
private Styles _styles; |
|
|
|
private bool _styled; |
|
|
|
private Styles _styles; |
|
|
|
private Subject<IStyleable> _styleDetach = new Subject<IStyleable>(); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
@ -259,18 +259,14 @@ namespace Avalonia.Controls |
|
|
|
public bool IsInitialized { get; private set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the styles for the control.
|
|
|
|
/// Gets the styles for the control.
|
|
|
|
/// </summary>
|
|
|
|
/// <remarks>
|
|
|
|
/// Styles for the entire application are added to the Application.Styles collection, but
|
|
|
|
/// each control may in addition define its own styles which are applied to the control
|
|
|
|
/// itself and its children.
|
|
|
|
/// </remarks>
|
|
|
|
public Styles Styles |
|
|
|
{ |
|
|
|
get { return _styles ?? (_styles = new Styles()); } |
|
|
|
set { _styles = value; } |
|
|
|
} |
|
|
|
public Styles Styles => _styles ?? (_styles = new Styles()); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the control's logical parent.
|
|
|
|
@ -336,6 +332,9 @@ namespace Avalonia.Controls |
|
|
|
/// <inheritdoc/>
|
|
|
|
IObservable<IStyleable> IStyleable.StyleDetach => _styleDetach; |
|
|
|
|
|
|
|
/// <inheritdoc/>
|
|
|
|
bool IStyleHost.IsStylesInitialized => _styles != null; |
|
|
|
|
|
|
|
/// <inheritdoc/>
|
|
|
|
IStyleHost IStyleHost.StylingParent => (IStyleHost)InheritanceParent; |
|
|
|
|
|
|
|
|