private void FpsChanged(object sender, FpsChangedEventArgs ea)
        {
           
                this.Dispatcher.Invoke(() =>
                    {
                        lblFrameRate.Content = String.Format("Frame Rate: {0}", Math.Round(ea.Fps));

                        string accuracy = _captureController.FrameReader.TrackingAccuracy;

                        if (!_captureController.SessionManager.isSweeping)
                        {
                            if (accuracy == "HIGH")
                            {
                                lblSceneTrackingAccuracy.Content = accuracy;
                                lblSceneTrackingAccuracy.Foreground = Brushes.Green;
                            }
                            else if (accuracy == "MID")
                            {
                                lblSceneTrackingAccuracy.Content = accuracy;
                                lblSceneTrackingAccuracy.Foreground = Brushes.YellowGreen;
                            }
                            else
                            {
                                lblSceneTrackingAccuracy.Content = "RESETING";
                                lblSceneTrackingAccuracy.Foreground = Brushes.Red;
                            }
                        }
                    });
        }
        private void StartCapture(object sender, FpsChangedEventArgs ea)
        {

            this.Dispatcher.Invoke(() =>
            {
                
            });
        }