Skip to content

Commit

Permalink
Merge branch 'develop' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
punker76 committed Feb 19, 2017
2 parents 0bfbab2 + 64c3a87 commit 3bb0c7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/release-notes/1.5.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
+ `ItemCommand` and `OptionsItemCommand`
+ `Command` for `HamburgerMenuItem`
+ New property `PaneForeground` for HamburgerMenu and Splitview and new Foreground/Background brushes `MahApps.Metro.HamburgerMenu.PaneBackgroundBrush`, `MahApps.Metro.HamburgerMenu.PaneForegroundBrush`
- If `ShowInTaskbar = false`, when double click on the title bar of a minimized window, the window will be restored instead of maximized. [#2854](https://github.com/MahApps/MahApps.Metro/pull/2854) [@hausenism](https://github.com/hausenism)

## Closed Issues

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1296,13 +1296,13 @@ internal static void DoWindowTitleThumbChangeWindowStateOnMouseDoubleClick(Metro
var isMouseOnTitlebar = mousePos.Y <= window.TitlebarHeight && window.TitlebarHeight > 0;
if (canResize && isMouseOnTitlebar)
{
if (window.WindowState == WindowState.Maximized)
if (window.WindowState == WindowState.Normal)
{
Microsoft.Windows.Shell.SystemCommands.RestoreWindow(window);
Microsoft.Windows.Shell.SystemCommands.MaximizeWindow(window);
}
else
{
Microsoft.Windows.Shell.SystemCommands.MaximizeWindow(window);
Microsoft.Windows.Shell.SystemCommands.RestoreWindow(window);
}
mouseButtonEventArgs.Handled = true;
}
Expand Down

0 comments on commit 3bb0c7f

Please sign in to comment.