Replies: 3 comments 3 replies
-
I am experiencing the same issue with Android (using .NET 7 with VS 2022 Version 17.4.4 and also VS2022 Version 17.5.0 Preview 3.0). I did notice that if a redraw of the screen is forced (eg if there is an alert displayed via 'Shell.Current.DisplayAlert') within the RelayCommand function then the ActivityIndicator becomes visible, but have yet to progress past this point. |
Beta Was this translation helpful? Give feedback.
-
Hey there! I came across this issue and I think I might have a solution that works. If you take a look at the code snippet below, you'll see that all I did was add a couple of await Task.Yield() statements to give the UI a chance to update. After doing that, the ActivityIndicator works perfectly for me. Give it a try and let me know if it works for you too:
Also have a look here: #12790 |
Beta Was this translation helpful? Give feedback.
-
I had the same issue with the Activity Indicator, spended lots of hours killing my brain cells until i realized that the activity indicator was running on the same thread as my await order, so i created a nuw thread and put the await in that thread. await Task.Run(() => viewModel.DownloadDocs(myDocs)); Try this. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I am using .Net MAUI in combination with MVVM Toolkit and Community Toolkit focusing on Android right now. At the moment I face the problem that my ActivityIndicator is not visible.
For the first try I'm using this implementation:
XAML:
My CS File like this:
And my ViewModel:
In this implementation I can click on the button an my Indicator is visible or not depending on the value of IsBusy. BTW: IsBusy is implemented at BaseViewModel
Now I do a little change in my ViewModel so it looks like this:
Now my ActivityIndicator isn't visible at all!
I don't think that I've got any typos or a problem with the binding because without calling the async methode everything works fine.
So I started to search around a litte bit and found a few problems with this in the past.
#6455
#8617
But all of them seemed to be fixed in the latest version of .Net 7.
Is there still a bug or am I doing something wrong?
Thanks and best regards
Phil
Beta Was this translation helpful? Give feedback.
All reactions