Articles in this section
Category / Section

How to switch between Xamarin.Forms Schedule views ?

2 mins read

In SfSchedule You can switch between Schedule views by using CellTapped event which will be fired while tapping schedule cell.

 

XAML

  
     <syncfusion :SfSchedule
       x:Name="schedule" ScheduleView="MonthView" 
       HorizontalOptions="FillAndExpand"  
       VerticalOptions="FillAndExpand" >
      </syncfusion :SfSchedule>
 

 

In CellTappedEventHandler, set required ScheduleView to be switched. On tapping a date on month cell, view moves to that particular date in day view.

 

C#

 
       schedule.CellTapped += CellTappedEventHandler; 
 
      private  void CellTappedEventHandler(object sender, CellTappedEventArgs e)
       { 
          schedule.ScheduleView = ScheduleView.DayView;
       } 
 

 

You can also switch ScheduleViews by including ScheduleView in a list or a button in the CustomHeader of Schedule. Here for including custom header, Schedule HeaderHeight need to be set as 0.

You can download the source code for entire demo of switching schedule view through event from here, ScheduleSample.


Conclusion

I hope you enjoyed learning about how to switch between Xamarin.Forms Schedule views.

You can refer to our Xamarin.Forms Schedule feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied