Articles in this section
Category / Section

How to restrict the year view move while tapping calendar’s month header?

You can able to restrict the move of year view with help of ShowYearView. Please refer the below code example,

 

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:Syncfusion ="clr-namespace:Syncfusion.SfCalendar.XForms;assembly=Syncfusion.SfCalendar.XForms"
x:Class="GettingStartedKBSyncfusion.MainPage">
<ContentPage.Content>
    <Syncfusion:SfCalendar x:Name="calendar" ShowYearView="false"  />
</ContentPage.Content>
</ContentPage>

Screenshot:

 

Before Enabling ShowYearView

 

After Enabling ShowYearView

 

/Users/hemalatham/Downloads/Drawing.png

 

Please download the sample from following Link

 

Link:  http://www.syncfusion.com/downloads/support/directtrac/general/ze/ShowYearView510949804

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