//TODO questionnumber, make question string separate public MainViewModel() { textQuestion = new TextQuestionVM(); sliderQuestion = new SliderQuestionVM(); Questions = new ObservableCollection <Question>(); foreach (QuestionTypes q in Enum.GetValues(typeof(QuestionTypes))) { QuestionType.Add(q); } SwitchNewQuestionVisibility = new RelayCommand(SwitchQuestionVisibility); SwitchEditQuestionVisibility = new RelayCommand(SwitchEditQVisibility); SaveNewTextQuestion = new RelayCommand(SaveTextQuestion); SaveNewSliderQuestion = new RelayCommand(SaveSliderQuestion); DeleteSelectedQuestion = new RelayCommand(DeleteQuestion); }