|
|
@ -4,6 +4,7 @@ |
|
|
using System; |
|
|
using System; |
|
|
using System.Collections.Generic; |
|
|
using System.Collections.Generic; |
|
|
using System.Reactive.Linq; |
|
|
using System.Reactive.Linq; |
|
|
|
|
|
using Avalonia.Controls; |
|
|
using Avalonia.Metadata; |
|
|
using Avalonia.Metadata; |
|
|
|
|
|
|
|
|
namespace Avalonia.Styling |
|
|
namespace Avalonia.Styling |
|
|
@ -16,7 +17,7 @@ namespace Avalonia.Styling |
|
|
private static Dictionary<IStyleable, List<IDisposable>> _applied = |
|
|
private static Dictionary<IStyleable, List<IDisposable>> _applied = |
|
|
new Dictionary<IStyleable, List<IDisposable>>(); |
|
|
new Dictionary<IStyleable, List<IDisposable>>(); |
|
|
|
|
|
|
|
|
private StyleResources _resources; |
|
|
private ResourceDictionary _resources; |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Initializes a new instance of the <see cref="Style"/> class.
|
|
|
/// Initializes a new instance of the <see cref="Style"/> class.
|
|
|
@ -37,13 +38,13 @@ namespace Avalonia.Styling |
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Gets or sets a dictionary of style resources.
|
|
|
/// Gets or sets a dictionary of style resources.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
public StyleResources Resources |
|
|
public ResourceDictionary Resources |
|
|
{ |
|
|
{ |
|
|
get |
|
|
get |
|
|
{ |
|
|
{ |
|
|
if (_resources == null) |
|
|
if (_resources == null) |
|
|
{ |
|
|
{ |
|
|
_resources = new StyleResources(); |
|
|
_resources = new ResourceDictionary(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
return _resources; |
|
|
return _resources; |
|
|
|