void Schedule_OnMonthCellLoadedEvent(object sender, MonthCellLoadedEventArgs args) { Button button = new Button(); button.Image = "user.png"; args.view = button; } |
if (args.isPreviousMonthDate) { args.cellStyle.TextColor = Color.White; } else if (args.isNextMonthDate) { args.cellStyle.TextColor = Color.White; } |
Hi Emil,
Thanks for the update.
Based on your provided information, your requirement of “Setting the custom view only in the schedule appointment month cell in Xamarin.Forms” can be achieved by setting condition in theMonthCellLoadedevent.
Please refer the below code example:
[c#] voidSchedule_OnMonthCellLoadedEvent(objectsender,MonthCellLoadedEventArgsargs) |
If the provided solution does not meet your requirement, please revert us back with your queries.
We are happy to assist you.
Regards,
Sivakumar P
[c#]
schedule.MonthCellViewLayout = ViewLayoutOptions.Overlay;
|
[c#]
void Schedule_OnMonthCellLoadedEvent(object sender, MonthCellLoadedEventArgs args)
{ var count = ((ScheduleAppointmentCollection)args.appointments).Count; } |