void toggleDebugger(object sender, EventArgs e)
 {
     if (DebugPanel.ActualHeight > 1)
     {
         HideDebuggerUI.Begin();
         ((ApplicationBarMenuItem)ApplicationBar.MenuItems[0]).Text = "open debugger";
     }
     else
     {
         ShowDebuggerUI.Begin();
         ((ApplicationBarMenuItem)ApplicationBar.MenuItems[0]).Text = "close debugger";
     }
 }
 private void startDebugger(object sender, System.Windows.Input.ManipulationStartedEventArgs e)
 {
     ShowDebuggerUI.Begin();
 }
 private void ShowDebugger(object sender, System.Windows.RoutedEventArgs e)
 {
     ShowDebuggerUI.Begin();
 }