Skip to content

Commit

Permalink
Merge pull request #106 from Simnico99/105-bug-its-too-late-to-use-th…
Browse files Browse the repository at this point in the history
…e-mica-dwm-function

Moved this.EnableBackdrop(SystemBackdropType);
  • Loading branch information
Simnico99 authored Oct 6, 2024
2 parents 5310f26 + b7ceece commit bd22bd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MicaWPF.Core/Controls/MicaWindow/MicaWindowBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ protected override void OnPropertyChanged(DependencyPropertyChangedEventArgs e)
base.OnPropertyChanged(e);
}

protected override void OnActivated(EventArgs e)
protected override void OnSourceInitialized(EventArgs e)
{
base.OnSourceInitialized(e);
this.EnableBackdrop(SystemBackdropType);
base.OnActivated(e);
}

private void AddPadding(WindowState windowsState)
Expand Down

0 comments on commit bd22bd2

Please sign in to comment.