Articles in this section
Category / Section

How to change the selection shape of calendar’s date cell selection?

1 min read

You can able to change the selection shape of calendar’s date cell using SelectionShape property in MonthViewSettings. SelectionShape property has two options

 

  1. Circle
  2. Fill

 

Default value of SelectionShape is Fill. Please refer the following code example,

 

MainPage.Xaml

 

<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">
    <Syncfusion:SfCalendar.MonthViewSettings>
        <Syncfusion:MonthViewSettings SelectionShape="Circle"/>
    </Syncfusion:SfCalendar.MonthViewSettings>
</Syncfusion:SfCalendar>
</ContentPage.Content>
</ContentPage>

 

Please download the sample from the following link

 

Link:

https://www.syncfusion.com/downloads/support/directtrac/general/ze/SelectionShape-1397876305

 

Screenshot:

../../Documents/1.png

 

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