Ejemplo n.º 1
0
 public MainViewModel()
 {
     ChangeViewCommand      = new RelayCommand <string>((p) => ChangeView(p));
     ToggleHamburgerCommand = new RelayCommand(() => MessengerInstance.Send(new SlideHamburgerMessage()));
     OpenSettingsCommand    = new RelayCommand(() => NavigationService.ChangePage("Settings"));
 }
Ejemplo n.º 2
0
 public HamburgerViewModel()
 {
     AboutCommand    = new RelayCommand(() => NavigationService.ChangePage("About"));
     SettingsCommand = new RelayCommand(() => NavigationService.ChangePage("Settings"));
 }