ProgressRing is not visible on Windows 11 inside the ContentDialog

60856927 46 Reputation points
2024-09-04T15:23:03.1933333+00:00

In my UWP app I have a ContentDialog where I show ProgressRing while loading data.
On Windows 10 the ProgressRing shown as expected but on Windows 11 the ProgressRing is not shown. Any way to make it working?

Universal Windows Platform (UWP)
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,537 questions
{count} votes

Accepted answer
  1. Junjie Zhu - MSFT 17,401 Reputation points Microsoft Vendor
    2024-09-06T05:19:41.3433333+00:00

    Hi

    I used the solution from GitHub, using a delay to reset the ProgressRing state, which worked, you can try it as a workaround.

     private async Task BugWorkaround() {
            this.progressRing.IsIndeterminate = false;
            this.progressRing.IsActive = false;
            await Task.Delay(System.TimeSpan.FromMilliseconds(100));
            this.progressRing.IsActive = true;
            this.progressRing.IsIndeterminate = true;
        }
    

    Note that the closed bug is fixed in WinUI3/WinAppSDK 1.6, which isn't released yet; however, that fix won't affect UWP. https://github.com/microsoft/microsoft-ui-xaml/issues/5925#issuecomment-2040890993

    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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.