-2
I have an application that works together with a server, where it needs to fetch some data.
When I do this search, it usually takes a certain time and I would like to put a ActivityIndicator
while loading takes place.
I did it this way:
<ActivityIndicator x:Name="ActivityLoad" IsRunning="False" IsVisible="False"/>
And in the code, I made sure that when he clicked the login button, he left the ActivityIndicator
visible.
However, during the request to the server the application simply hangs, freezes everything, until the server returns a response. Causing the ActivityIndicator
only appears on the screen when already clicked. This happens in all routines I have. (I tried to use the Async
and the Await
but it didn’t work)
I’ve searched a lot of places and I still can’t solve it.
Unfortunately it didn’t work. I kept looking and used Rg.Popup, a nuget in the project. This way, I created a transparent popup with Activity Indicator running. Every time I need to load, I call the popup to the screen, then close. It got a little tricky but it’s the only way I found of not locking everything during the request on the server.
– Renan Mussatto