6 changed files with 26 additions and 9 deletions
@ -0,0 +1,18 @@ |
|||
using Avalonia.Styling; |
|||
|
|||
namespace Avalonia.Diagnostics |
|||
{ |
|||
public class AppliedStyle |
|||
{ |
|||
private readonly IStyleInstance _instance; |
|||
|
|||
internal AppliedStyle(IStyleInstance instance) |
|||
{ |
|||
_instance = instance; |
|||
} |
|||
|
|||
public bool HasActivator => _instance.HasActivator; |
|||
public bool IsActive => _instance.IsActive; |
|||
public StyleBase Style => (StyleBase)_instance.Source; |
|||
} |
|||
} |
|||
Loading…
Reference in new issue