when user swipe day calendar, i am fetching appointments from server in calendar DisplayDateChanged event, those server calls are under "await". This take some time to complete and then use those data to set calendar appointment source, then DisplayDateChanged event automatically fires and setting date to previously where it was. so calendar can not scroll to where user wants. This may be because of time taken to fetch data or again setting appointment source of calendar.
can reproduce using following code.
async Task longrun()
ObservableCollection<testmodel> items =
i = 0; i < 10; i++)
var item =
"Meeting with Tom"
StartDate = DateTime.Now,
EndDate = DateTime.Now.AddHours(1),
Color = Color.Tomato
weekcalendar.AppointmentsSource = items;
testmodel as is this
testmodel : IAppointment, INotifyPropertyChanged
tested only in Android. Any solution ?