Articles in this section
Category / Section

How to customize the month cell border lines of SfCalendar?

1 min read

You can customize the month cell’s bordering lines by using CellGridOptions. CellGridOptions property holds VerticalLines, HorizontalLines, Both and None

 

Default CellGridOptions is HorizontalLines.

 

The following code illustrates how to achieve this.

 

Using 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="SfCalendarKB.MainPage">
<ContentPage.Content>
  <Syncfusion:SfCalendar x:Name="calendar"   >
    <Syncfusion:SfCalendar.MonthViewSettings>
      <Syncfusion:MonthViewSettings CellGridOptions="VerticalLines" />
    </Syncfusion:SfCalendar.MonthViewSettings>
  </Syncfusion:SfCalendar>
</ContentPage.Content>
</ContentPage>

 

Sample Link:

https://www.syncfusion.com/downloads/support/directtrac/general/ze/GettingStartedKBSyncfusion-1044972572.zip

 

Screenshots:

UWP:

Calendar

Description automatically generated

 

 

   

                              

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Android:

 

Calendar

Description automatically generated

 



 

 

 

Ios:

 

 

 

 

 

Calendar

Description automatically generated with medium confidence            

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