From 00c1cf8fea25418aee5af6d54befb977d96bef3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20L=C3=B6hr?= Date: Sun, 7 Feb 2016 16:46:56 +0100 Subject: [PATCH] Hide menu bar in fullscreen --- Wiimote Buzzer/MainWindow.xaml | 2 +- Wiimote Buzzer/MainWindow.xaml.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Wiimote Buzzer/MainWindow.xaml b/Wiimote Buzzer/MainWindow.xaml index 6ca1e22..d3ac2e4 100644 --- a/Wiimote Buzzer/MainWindow.xaml +++ b/Wiimote Buzzer/MainWindow.xaml @@ -7,7 +7,7 @@ mc:Ignorable="d" Title="Wiimote Buzzer" StateChanged="Window_StateChanged" KeyDown="Window_KeyDown"> - + diff --git a/Wiimote Buzzer/MainWindow.xaml.cs b/Wiimote Buzzer/MainWindow.xaml.cs index d2e4253..977e2ba 100644 --- a/Wiimote Buzzer/MainWindow.xaml.cs +++ b/Wiimote Buzzer/MainWindow.xaml.cs @@ -239,10 +239,12 @@ private void Window_StateChanged(object sender, EventArgs e) { case WindowState.Maximized: WindowStyle = WindowStyle.None; + Menu.Visibility = Visibility.Hidden; break; case WindowState.Normal: WindowStyle = WindowStyle.SingleBorderWindow; + Menu.Visibility = Visibility.Visible; break; }