Category / Section
How to change the selection shape of calendar’s date cell selection?
You can able to change the selection shape of calendar’s date cell using SelectionShape property in MonthViewSettings. SelectionShape property has two options
- Circle
- 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:
|
