internal void MoveToDate(DateTime date, Storyboard animationStoryboard) { DateTime newDisplayDate = date; this.CoerceDateWithinDisplayRange(ref newDisplayDate); DateTime oldDisplayDate = this.DisplayDate; this.DisplayDate = newDisplayDate; if (CalendarMathHelper.IsCalendarViewChanged(oldDisplayDate, newDisplayDate, this.DisplayMode)) { if (animationStoryboard != null) { animationStoryboard.Begin(); } } }
private void MoveToPreviousView(Storyboard animationStoryboard, int navigationStep, bool weekendsVisible) { DateTime newDisplayDate = CalendarMathHelper.IncrementByView(this.Owner.DisplayDate, -navigationStep, this.Owner.DisplayMode, weekendsVisible); this.Owner.MoveToDate(newDisplayDate, animationStoryboard); }
private void MoveToNextView(Storyboard animationStoryboard) { DateTime newDisplayDate = CalendarMathHelper.IncrementByView(this.Owner.DisplayDate, 1, this.Owner.DisplayMode); this.Owner.MoveToDate(newDisplayDate, animationStoryboard); }