We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58c3771 commit 1ec9f42Copy full SHA for 1ec9f42
1 file changed
src/WPFDevelopers.Shared/Core/Helpers/ControlsHelper.cs
@@ -25,7 +25,10 @@ public static void WindowShake(Window window = null)
25
if (window == null)
26
if (Application.Current != null && Application.Current.Windows.Count > 0)
27
window = Application.Current.Windows.OfType<Window>().FirstOrDefault(o => o.IsActive);
28
-
+ if (window == null)
29
+ return;
30
+ if (window.WindowState != WindowState.Normal)
31
32
var doubleAnimation = new DoubleAnimation
33
{
34
From = window.Left,
0 commit comments