New to Telerik UI for Xamarin? Download free 30-day trial

Calendar for Xamarin.iOS: View Transitions

View transitions allow for switching to the next/previous month with different animation effects. Those effects are available in all view mode presenters that inherit from TKCalendarPresenterBase. These include: month, month names, year numbers. Detailed information about view modes is available in this help article: View modes

The available animations are: card, flip, float, fold, rotate, card and scroll. The default transition is scroll. You should access the TransitionMode property of the presenter class in order to customize the transition effect:

TKCalendarMonthPresenter presenter = (TKCalendarMonthPresenter)this.CalendarView.Presenter;
presenter.TransitionMode = TKCalendarTransitionMode.Flip;

The following options can be applied on transitions:

The TransitionIsVertical changes the horizontal/vertical orientation of the transition, this changes also the activation gesture:

presenter.TransitionIsVertical = true;

The TransitionIsReverse changes the forward/backward direction of the transition, thus changing its effect.

Finally the transition duration can be customized by setting the TransitionDuration property:

presenter.TransitionDuration = 2;
In this article