Hi, I have a calendar and have assigned the InlineItemTapped event to a method in my code behind, however it is not firing. Could someone point out to me where I'm going wrong? Thanks
My calendar is as follows:
<syncfusion:SfCalendar x:Name="calendar"
ViewMode="MonthView"
ShowInlineEvents="True"
InlineViewMode="Agenda"
MaximumEventIndicatorCount="5"
DataSource="{Binding Events}"
FirstDayofWeek="1"
InlineItemTapped="Calendar_InlineItemTapped">
<syncfusion:SfCalendar.MonthViewSettings>
<syncfusion:MonthViewSettings TodaySelectionBackgroundColor="DodgerBlue"
AgendaSelectedDateColor="Gray">
<syncfusion:MonthViewSettings.InlineItemTemplate>
<DataTemplate>
<Button TextColor="Black"
BackgroundColor="{Binding Color}"
Text="{Binding Subject}"
TextTransform="None"/>
</DataTemplate>
</syncfusion:MonthViewSettings.InlineItemTemplate>
</syncfusion:MonthViewSettings>
</syncfusion:SfCalendar.MonthViewSettings>
</syncfusion:SfCalendar>
and the method:
private void Calendar_InlineItemTapped(object sender, InlineItemTappedEventArgs e)
{
var appointment = e.InlineEvent;
DisplayAlert(appointment.Subject, appointment.StartTime.ToString(), "ok");
}