void listener_SpeechRecognized(object sender, System.Speech.Recognition.SpeechRecognizedEventArgs e)
        {
            // Fires when a phrase is recognized
            HeardTextBlock.Text = DateTime.Now.ToLongTimeString() + ": " + e.Result.Text;

            //when "Home" recognized, navigate to Home screen
            var newForm = new MainWindow(); //create your new form.
            newForm.Show(); //show the new form.
            this.Close(); //only if you want to close the current form.

            
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.ControlsBasicsWindow = ((KinectKickboxingBVversion1.MainWindow)(target));
     
     #line 10 "..\..\..\MainWindow.xaml"
     this.ControlsBasicsWindow.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.MenuFrm = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.KinectVideo = ((System.Windows.Controls.Image)(target));
     return;
     case 4:
     this.sensorChooserUi = ((Microsoft.Kinect.Toolkit.KinectSensorChooserUI)(target));
     return;
     case 5:
     this.kinectRegion = ((Microsoft.Kinect.Toolkit.Controls.KinectRegion)(target));
     return;
     case 6:
     this.kinectRegionGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 7:
     
     #line 90 "..\..\..\MainWindow.xaml"
     ((Microsoft.Kinect.Toolkit.Controls.KinectTileButton)(target)).Click += new System.Windows.RoutedEventHandler(this.trainingBtn_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     
     #line 91 "..\..\..\MainWindow.xaml"
     ((Microsoft.Kinect.Toolkit.Controls.KinectTileButton)(target)).Click += new System.Windows.RoutedEventHandler(this.conditioningBtn_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
 private void homeBtn_Click(object sender, RoutedEventArgs e)
 {
     var newForm = new MainWindow(); //create your new form.
     newForm.Show(); //show the new form.
     this.Close(); //only if you want to close the current form.
 }