I have my code setup as follows:
<xForms:SfSchedule x:Name="Schedule"
Grid.Row="1"
VerticalOptions="FillAndExpand"
ScheduleView="{Binding ScheduleViewMode}"
FirstDayOfWeek="2"
SelectedDate="{Binding SelectedDate, Mode=TwoWay}"
MoveToDate="{Binding MoveToDate, Mode=OneWay}"
DataSource="{Binding Appointments}"
ViewHeaderHeight="{Binding ViewHeaderHeight}"
HeaderHeight="0" >
<xForms:SfSchedule.SelectionView>
<Button effects:LongPressEffect.Command="{Binding CreateNewAppointmentCommand}"
BackgroundColor="Red"
Text="Test">
<Button.Effects>
<effects:LongPressEffect/>
</Button.Effects>
</Button>
</xForms:SfSchedule.SelectionView>
<!--Other Properties-->
</xForms:SfSchedule>
As you can see I have set a LongPressEffect on the button in the SelectionView, this command works when the SfSchedule is in MonthView, the "Test" text darkens on iOS to indicate that some user interaction is occuring.
On Android, if I even set the SelectionView, I get an Object Reference error which I assume is similar to my issue I reported here: https://www.syncfusion.com/forums/143028/on-android-when-swapping-the-control-to-dayview-if-the-day-being-swapped-to-has-an-appointment-event
Upon changing the SfSchedule to DayView, the Red Button appears on the selected block (say 12pm - 1pm) however I cannot interact with the button at all. The "Test" text on the button doesn't darken. If I set a normal command on the button, it also does not work. It seems like something is swallowing user input.
Aside from setting the SelectionView property I have the following properties set:
AppointmentTemplate
Behaviors
ViewHeaderStyle
DayViewSettings (just ShowAllDay = false)
MonthViewSettings
AppointmentMapping
Even after removing all these properties the problem persists.
Thanks, Akin