We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Calendar ui not updating on UWP

I have the following xaml, what I trying to do is select the whole week when user selects any day.

        <sfCalendar:SfCalendar SelectionMode="RangeSelection" SelectionChanged="SfCalendar_OnSelectionChanged" />

I tried to use the below code.

        private void SfCalendar_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
            if (sender is SfCalendar sfCalendar && sfCalendar.SelectedDates.Count > 0)
                var date = sfCalendar.SelectedDates.First();

                sfCalendar.SelectedRange = new SelectionRange(
                    date.AddDays(-(int)date.DayOfWeek + 7));
                // If I commend the bellow code the ui is not updating but this produce something like a glitch in ui.

2 Replies

SP Subburaj Pandian Veluchamy Syncfusion Team July 8, 2019 10:17 AM UTC

Hi Almis, 
Thank you for contacting Syncfusion support. 
We have already found and fixed the mentioned issue “Selection was not updated properly in Calendar Xamarin.Forms (UWP). This issue fix will be included in our upcoming 2019 Volume 2 main release which is expected to rollout by mid of July 2019. We appreciate your patience until then. 
Subburaj Pandian V    

SP Subburaj Pandian Veluchamy Syncfusion Team July 12, 2019 08:53 AM UTC

Hi Almis, 
We are glad to announce that our Essential Studio 2019 Volume 2 Release version is rolled out with the reported issue fix “Selection was not updated properly in Calendar Xamarin.Forms (UWP)” and is available for download under the following link. 
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. 
Subburaj Pandian V 

Live Chat Icon For mobile
Up arrow icon