Skip to content

Commit

Permalink
Don't focus Win32 window in design mode.
Browse files Browse the repository at this point in the history
Fixes #837.
  • Loading branch information
grokys committed Jan 7, 2017
1 parent 6b11c03 commit 5e84430
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Windows/Avalonia.Win32/WindowImpl.cs
Expand Up @@ -709,7 +709,10 @@ private void ShowWindow(WindowState state)
MaximizeWithoutCoveringTaskbar();
}

SetFocus(_hwnd);
if (!Design.IsDesignMode)
{
SetFocus(_hwnd);
}
}

private void MaximizeWithoutCoveringTaskbar()
Expand Down

0 comments on commit 5e84430

Please sign in to comment.