I am using XamForms.Controls.Calendar
for showing calendar in my application, I have added this package in all platforms.
Added following codes in xaml:
<StackLayout> <controls:Calendar HorizontalOptions="FillAndExpand" VerticalOptions="CenterAndExpand" x:Name="calendar" DateClicked="CurrentDate"/> </StackLayout>
In c#:
XamForms.Controls.Calendar calendar = new XamForms.Controls.Calendar() { WidthRequest = 300, HeightRequest = 300 }; } public async void CurrentDate(Object sender, EventArgs args) { var dateSelect = calendar.SelectedDate; }
I need to add events for dates in the calendar like school day, school mass or exam(Please see the screenshot added below). Is this possible in XamForms.Controls.Calendar
?