/// <summary> /// Performs the core action given the provided parameter. /// </summary> public override void Execute(object parameter) { base.Execute(parameter); CalendarViewChangeContext context = parameter as CalendarViewChangeContext; this.MoveToUpperView(context.AnimationStoryboard); }
/// <summary> /// Performs the core action given the provided parameter. /// </summary> public override void Execute(object parameter) { base.Execute(parameter); CalendarViewChangeContext context = parameter as CalendarViewChangeContext; this.MoveToPreviousView(context.AnimationStoryboard, context.navigationStep, context.weekendsVisible); }
internal void RaiseMoveToNextViewCommand() { CalendarViewChangeContext context = new CalendarViewChangeContext() { AnimationStoryboard = this.CreateMoveToNextViewAnimationStoryboard() }; this.CommandService.ExecuteCommand(CommandId.MoveToNextView, context); }
internal void RaiseMoveToLowerCommand(DateTime date) { CalendarViewChangeContext context = new CalendarViewChangeContext() { AnimationStoryboard = this.CreateMoveToUpperOrLowerViewAnimationStoryboard(), Date = date }; this.CommandService.ExecuteCommand(CommandId.MoveToLowerView, context); }
/// <summary> /// Performs the core action given the provided parameter. /// </summary> public override void Execute(object parameter) { base.Execute(parameter); CalendarViewChangeContext context = parameter as CalendarViewChangeContext; if (context.Date.HasValue) { this.MoveToLowerView(context.Date.Value, context.AnimationStoryboard); } }
internal void RaiseMoveToPreviousViewCommand(int navigatioStep) { CalendarViewChangeContext context = new CalendarViewChangeContext(); if (this.displayModeCache != CalendarDisplayMode.MultiDayView) { context.AnimationStoryboard = this.CreateMoveToPreviousViewAnimationStoryboard(); } context.navigationStep = navigatioStep; this.CommandService.ExecuteCommand(CommandId.MoveToPreviousView, context); }
internal void RaiseMoveToNextViewCommand(int navigatioStep) { CalendarViewChangeContext context = new CalendarViewChangeContext(); if (this.displayModeCache != CalendarDisplayMode.MultiDayView) { context.AnimationStoryboard = this.CreateMoveToNextViewAnimationStoryboard(); } else { context.weekendsVisible = this.MultiDayViewSettings.WeekendsVisible; } context.navigationStep = navigatioStep; this.CommandService.ExecuteCommand(CommandId.MoveToNextView, context); }
internal void RaiseMoveToDateCommand(DateTime date) { Storyboard animation = null; if (date.Date < this.DisplayDate.Date) { animation = this.CreateMoveToPreviousViewAnimationStoryboard(); } else { animation = this.CreateMoveToNextViewAnimationStoryboard(); } CalendarViewChangeContext context = new CalendarViewChangeContext() { AnimationStoryboard = animation, Date = date }; this.CommandService.ExecuteCommand(CommandId.MoveToDate, context); }