// An activity was added to a day. private void OnActivityAddedToDay(object sender, Activity activity) { var dayControl = sender as DayControl; if (dayControl == null) { return; } var day = dayControl.Day; if (day == null) { return; } _mainViewModel.AddActivityToDay(day, activity); Calendar.Days = null; Calendar.Days = _mainViewModel.Days; }