コード例 #1
0
        public override void Execute(object parameter)
        {
            base.Execute(parameter);

            RadCalendar calendar = this.Owner;
            MultiDayViewAppointmentsCRUDViewModel vm = (MultiDayViewAppointmentsCRUDViewModel)this.Owner.DataContext;

            vm.AppointmentTapCommand.Execute(parameter);
        }
コード例 #2
0
        public MultiDayViewAppointmentsCRUD()
        {
            this.InitializeComponent();

            this.vm          = new MultiDayViewAppointmentsCRUDViewModel();
            this.DataContext = this.vm;

            this.culture = new CultureInfo("en-US");
            this.culture.DateTimeFormat.FirstDayOfWeek = DayOfWeek.Monday;

            DateTime firstDateOfCurrentWeek = this.GetFirstDayOfCurrentWeek(this.calendar.DisplayDate, this.culture.DateTimeFormat.FirstDayOfWeek);

            this.calendar.DisplayDate = firstDateOfCurrentWeek;
        }