Hi Team,
We are using SfCalendar for Xamarin.Android.
Our requirement demands SfCalendar view to show only the Current Month.
Hence, we are using the below lines of code to enable only MonthView.
private void SfCalendar_ViewModeChanged(object sender, SfCalendar.ViewModeChangedEventArgs e)
{
if (sfCalendar.ViewMode == ViewMode.YearView)
sfCalendar.ViewMode = ViewMode.MonthView;
}
We are also using the properties sfcalendar.NavigationEnable=false; & sfCalendar.NavigateToMonthOnInActiveDatesSelection = false;
However, when we click on the header or tap on the next/previous month dates we are able to navigate to the respective month.
Also, when we tap on the next/previous month dates and keep our application in the background and again open the app, we are able to see the month of respective dates that was tapped instead of current month.
We need the calendar to show on the current month dates. It should not navigate to any other month.
Request you to help us in this regard.
Regards,
Rahul