Browse Source

Refactored styling.

- Don't use Rx in the styling system. Instead introduces `IStyleActivator` which is like an `IObservable<bool>`-lite in order to cut down on allocations.
- #nullable enable on touched files
pull/3647/head
Steven Kirk 7 years ago
parent
commit
6b902254bc
  1. 4
      src/Avalonia.Styling/StyledElement.cs

4
src/Avalonia.Styling/StyledElement.cs

@ -207,9 +207,9 @@ namespace Avalonia
/// </remarks> /// </remarks>
public Styles Styles public Styles Styles
{ {
get get
{ {
if (_styles == null) if (_styles is null)
{ {
_styles = new Styles(this); _styles = new Styles(this);
_styles.ResourcesChanged += ThisResourcesChanged; _styles.ResourcesChanged += ThisResourcesChanged;

Loading…
Cancel
Save