Category / Section
How to navigate the inactive month (either previous or next) while tapping the inactive month's date (either previous or next) in SfCalendar?
1 min read
You can able to navigate the inactive (either previous or next) month while tapping the inactive (either previous or next) date in SfCalendar using NavigateToMonthOnInActiveDatesSelection property.
MainPage.Xaml
<?xml version="1.0" encoding="UTF-8"?> <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:LocalNamespace="clr-namespace:GettingStartedKBSyncfusion" xmlns:Syncfusion ="clr-namespace:Syncfusion.SfCalendar.XForms;assembly=Syncfusion.SfCalendar.XForms" x:Class="GettingStartedKBSyncfusion.MainPage"> <ContentPage.Content> <Syncfusion:SfCalendar x:Name="calendar" NavigateToMonthOnInActiveDatesSelection="true"/> </ContentPage.Content> </ContentPage>
Please download the sample from the following link
Link: https://www.syncfusion.com/downloads/support/directtrac/general/ze/NavigationInActiveMonth1824956450
Screenshot:
After tapping next month’s date 7 in current month view