UWP progress ring activity -


i trying hide progress ring stuff on page loads completely, don't know , how set set active property false.

progress.isactive; 

where should use line of code?

you haven't provided information on how loading data on page, assume doing asynchronously.

if you're doing sequentially, can deactivate progress ring @ end:

public async void initializedata() {     textbox1.text = await getdata1();     textbox2.text = await getdata2();     textbox3.text = await getdata3();     // ...      progress.isactive = false; } 

if you're loading data in parallel, should collect or awaitable tasks in single array , await them all:

public async void initializedata() {     var loadingtasks = new task[]     {         getdata1(),         getdata2(),         getdata3()         // ...     };      await task.whenall(loadingtasks);      progress.isactive = false; } 

in case assign loaded data controls inside individual getdata methods.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -