A Microsoft platform for building and publishing apps for Windows devices.
Hello,
Welcome to Microsoft Q&A!
After testing, add a Task.Delay() method will help to solve the issue.
The code looks like this:
prrgLoadingData.IsActive = true;
prrgLoadingData.Visibility = Visibility.Visible;
await Task.Delay(1);
await LoadReportDataFromSQLDB(); //it loads data from sql db
prrgLoadingData.IsActive = false;
prrgLoadingData.Visibility = Visibility.Collapsed;
If you have any other questions, please let us know.
Thank you.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.