public MenuPageViewModel() { HomeVm = new HomeViewModel(); DiscoveryVm = new DiscoveryViewModel(); KalendarVm = new KalendarViewModel(); CurrentView = HomeVm; HomeViewCommand = new RelayCommand(o => { CurrentView = HomeVm; }); DiscoveryViewCommand = new RelayCommand(o => { CurrentView = DiscoveryVm; }); }
public KalendarPage() { BindingContext = new KalendarViewModel(); InitializeComponent(); }