Browse Source

Remove unneeded change.

refactor/avaloniapropertystore
Steven Kirk 4 years ago
parent
commit
2589f26751
  1. 9
      src/Avalonia.Base/StyledElement.cs

9
src/Avalonia.Base/StyledElement.cs

@ -316,13 +316,10 @@ namespace Avalonia
throw new InvalidOperationException("BeginInit was not called."); throw new InvalidOperationException("BeginInit was not called.");
} }
if (--_initCount == 0) if (--_initCount == 0 && _logicalRoot is not null)
{ {
if (_logicalRoot is not null) ApplyStyling();
{ InitializeIfNeeded();
ApplyStyling();
InitializeIfNeeded();
}
} }
} }

Loading…
Cancel
Save