Xamarin Forms thread background

Nort ⠀ 671 Reputation points
2021-04-22T17:31:08.997+00:00

When I click on the button, my interface is blocked because the page is loading. How do I prevent my interface from blocking and loading in the background?

I tried to do this with streams and async methods.

I mainly used:
Activity.RunOnUiThread
A task

I couldn't solve it, but I know that the solution is near, you just need to choose the right path.

I need to implement for Android and iOS.

Your help is very important to me, because any answer can help me.

The way I see the result:

  1. Pressing a button (navigate to another page)
  2. Opening this page without blocking the interface
  3. Loading information in the background
  4. Automatic output of the loaded information to the page, without blocking the interface
  5. Loading in real time or download indexer (ActivityIndicator), and then display the complete loaded information.
Developer technologies | .NET | Xamarin
Developer technologies | C#
{count} votes

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.