private async void ExecuteCalendarDialog() { CalendarView view = new CalendarView { DataContext = new CalendarViewModel() }; ((CalendarViewModel)view.DataContext).SelectedDate = TrackingDate; // show the dialog var result = await DialogHost.Show(view, "RootDialog"); bool selectedOk = (bool)result; if (selectedOk) { TrackingDate = ((CalendarViewModel)view.DataContext).SelectedDate; TaskViewModelsView.Refresh(); UpdateTotalTime(); } }
private void ChangeDisplayDate(int daysToAdd) { TrackingDate = TrackingDate.AddDays(daysToAdd); TaskViewModelsView.Refresh(); UpdateTotalTime(); }