コード例 #1
0
 private void RefreshWeekBody()
 {
     weekBody = new WeekBody();
     weekBody.AssignMonthBodyAppointmnts(GetMonthAppointments());
     weekBody.Refresh();
     App.Current.Resources[currentBodyContentResourceName] = weekBody;
 }
        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;
            }
        }