I have a requirement to refresh the carousel control every minute with data. I am using a custom entity to populate the carousel with data and have defined a data template for the same.
I have managed to refresh the carousel - however, after refresh the same item should be at the centre of the carousel as before the refresh. I am using the below code to do the bring the item into view, but it doesnt seem to work.
Record objRec = rdcTasks.SelectedRecord;
RadCarouselPanel panel = this.rdcTasks.FindCarouselPanel();
this.rdcTasks.ItemsSource = this.CreateItemSource();
In debug mode when I check the value of objRec, it shows the correct data record. However, it does not bring it to the centre.
Also, I need to set a different colour for the data record at the centre of the carousel. How can I achieve this?
Thanks in advance.