private void RefreshMonthBody() { monthBody = new MonthBody(); monthBody.AssignMonthAppointments(GetMonthAppointments()); monthBody.Refresh(); App.Current.Resources[currentBodyContentResourceName] = monthBody; }
private void SetBodyContentResourceValue(string selectedCalendarViewOption) { switch (selectedCalendarViewOption) { case WeekViewOption: WeekBody weekBody = new WeekBody(); App.Current.Resources[CurrentBodyContentResourceName] = weekBody; break; default: MonthBody monthBody = new MonthBody(); App.Current.Resources[CurrentBodyContentResourceName] = monthBody; break; } }