/// <summary> /// Constructor of the view to customize the user feedbacks /// </summary> public ChoiceFeedbackView() { instance = this; InitializeComponent(); ChoiceFeedbackViewModel cfvm = new ChoiceFeedbackViewModel(); this.DataContext = cfvm; InitCheckbox(); // if facetracking is activate if (TrackingSideTool.Get().ActivateFaceTrackingCheckBox.IsChecked.Value) { FaceChoiceFeedback.IsEnabled = true; EmotionChoiceFeedback.IsEnabled = true; LookDirecChoiceFeedback.IsEnabled = true; } else { FaceChoiceFeedback.Opacity = 0.5; EmotionChoiceFeedback.Opacity = 0.5; LookDirecChoiceFeedback.Opacity = 0.5; } // audio not available yet AudioChoiceFeedback.Opacity = 0.5; WpmChoiceFeedback.Opacity = 0.5; }
public static ChoiceFeedbackView Get() { if (instance == null) { instance = new ChoiceFeedbackView(); } return(instance); }