Exemplo n.º 1
0
        void execute(object parameter)
        {
            switch ((string)parameter)
            {
            case "Curiosity":
                SelectedView = new CuriosityViewModel();
                break;

            case "APOD":
                SelectedView = new APODViewModel();
                break;
            }
        }
Exemplo n.º 2
0
 public MainViewModel()
 {
     SwitchingViewCommand = new RelayCommand((a) => execute(a), true);
     SelectedView         = new CuriosityViewModel();
 }