Hello,
i'm evaluating the SFSchedule for use in one of our apps and have several questions regarding this control.
I'm using the SfSchedule in a prism application, so i try configuring the component in xaml, with bindings and a viewmodel.
1. is it possible to have different ScheduleAppointmentMappings for a DayView and a WeekView? I would like to display differents texts in the appointment cells, for example a shorter text in the WeekView and a longer text in the DayView.
Since ScheduleAppointmentMapping is a bindable property i tried changing it by binding a new instance when i switch between DayView and WeekView, but that doesn't change the visual appearence of the appointments.
2. when i try to style an appoint with an event like described in the documentation at https://help.syncfusion.com/xamarin/sfschedule/data-bindings#customize-appearance-using-event
i get an null pointer exception. args.appointmentStyle is always null.
3. i'm trying to switch between DayView and WeekView with the ViewHeaderTappedEvent, so when i start with the WeekView and tap on the header i switch to the dayview of the tapped date.
To get to the tapped day i set the MoveToDate binding to the DateTime of the ViewHeaderTappedEventArgs.
This works well as long as i don't tap on "today".
So lets say i have a Weekview with dates from "1" to "7":
- day "3" is the highlighted "today".
- when i tap on the "3" i get to the DayView of day "3".
- now i tap again the header to get back to the WeekView
- now i tap on day "5" and get the DayView of day "5".
- back again to the WeekView
- now i tap again on day "3", but instead of getting to the DayView of day 3 i get the DayView of Day "5"
This is repeatable, i always get the DayView of the last selected day, and not of "today".
edit: this is only on Android, on iOS it works as expected.
4. will it be possible to style the appointments using a DataTemplate?
5. when i try to style an appointment with a custom cell only the outer most layout seems to gets the horizontal and vertical options like FillAndExpand.
If i have an outer stacklayout with an inner stacklayout, only the outer layout fills the whole appointment, the inner layout does not use the options.
6. ScheduleAppointmentMapping has properties like NotesMapping or LocationMapping, but these are not rendered for example in the DayView.
Is it possible to include these as new default cell rendering?
7. When i try to use my own custom cell with ViewLayoutOptions.Overlay i get the desired output on Android, but on IOS the whole cell is empty, i just get the colored cell.
I hope you can help me with my questions and problems,
Regards,
Kalle