Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable UI while showing progress ring Winrt C# app

In my winrt C# application I want to disable the user interaction while progress ring is showing and something is running in background.

Please let me know how we can achieve this.

Thanks.

like image 633
patel kavit Avatar asked Jan 20 '26 21:01

patel kavit


1 Answers

Place your content inside a containing grid with one row and column and place your content inside this single cell (most likely inside another grid). Inside the containing grid, immediately below the "real" content but inside the same single cell, place a full-width, full-height transparent dummy grid whose visibility is bound to the visibility of the progress ring. With some tweaking, you should be able to get the dummy grid to capture all user input and to prevent it from getting to the "real" content. When the dummy grid's visibility is collapsed (i.e. when the progress ring is also collapsed), the "real" content will function as normal.

like image 108
Richard Cook Avatar answered Jan 22 '26 11:01

Richard Cook