void recognitionCore_ActivityRecognizingStarted(object o, ActivityRecognizingEventArgs e)
        {
            SimilarityDetectedLabel.Text = e.Activity.Name;
            SimilarityDetectedLabel.Visibility = System.Windows.Visibility.Visible;

            RecognitionConfidenceLabel.Text = e.Confidence.ToString();
            RecognitionConfidenceLabel.Visibility = System.Windows.Visibility.Visible;
        }
        void recognitionCore_ActivityRecognizingEnded(object o, ActivityRecognizingEventArgs e)
        {
            SimilarityDetectedLabel.Visibility = System.Windows.Visibility.Hidden;

            RecognitionConfidenceLabel.Visibility = System.Windows.Visibility.Hidden;
        }