Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
        /// <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);
        }
Ejemplo n.º 3
0
        internal void RaiseMoveToNextViewCommand()
        {
            CalendarViewChangeContext context = new CalendarViewChangeContext()
            {
                AnimationStoryboard = this.CreateMoveToNextViewAnimationStoryboard()
            };

            this.CommandService.ExecuteCommand(CommandId.MoveToNextView, context);
        }
Ejemplo n.º 4
0
        internal void RaiseMoveToLowerCommand(DateTime date)
        {
            CalendarViewChangeContext context = new CalendarViewChangeContext()
            {
                AnimationStoryboard = this.CreateMoveToUpperOrLowerViewAnimationStoryboard(),
                Date = date
            };

            this.CommandService.ExecuteCommand(CommandId.MoveToLowerView, context);
        }
Ejemplo n.º 5
0
        /// <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);
            }
        }
Ejemplo n.º 6
0
        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);
        }
Ejemplo n.º 7
0
        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);
        }
Ejemplo n.º 8
0
        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);
        }