Skip to content

How to activate ProgressRing before synchronous call #8329

Discussion options

You must be logged in to vote

Well, you shouldn't be hanging the UI thread as in most cases it is going to be completely frozen the whole time. Here though the GPU takes care of the animation once the UI has flushed the render cycle. The time to next flush would depend on your refresh rate, but ~20ms would handle most cases, so:

await Task.Delay(20);

after setting IsActive.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@greatoceansoftware
Comment options

Answer selected by greatoceansoftware
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants