✅ async .NET MAUI binding
Hello, on Xamarin channel I found this code how to update UI with threads and async stuff.
https://youtu.be/-LY4ATA8Bgw?si=cRmPMFNjL9-zTxui&t=1212
But in .NET MAUI it says
Warning CS0618 'Device.BeginInvokeOnMainThread(Action)' is obsolete: 'Use BindableObject.Dispatcher.Dispatch() instead'
. So how can I bind some async data from my API by using it?
Leave an example please 😄
1 Reply
alright, after some expreriments I found this solution
But probably this is not a good way
hm... This code only sets property but UI is still not updated
The problem was with
user = await mrsuApi.GetMyProfile();
it should be User = ...