AvaloniaUI / Avalonia.Samples

Avalonia.Samples aims to provide some minimal samples focusing on a particular issue at a time. This should help getting new users started.
https://www.avaloniaui.net
699 stars 121 forks source link

CommandSample: Missing Details after Conversion from CommunityMVVM to ReactiveUI leed to UI freeze #102

Open redfudd opened 1 month ago

redfudd commented 1 month ago

Hi there,

I discovered an error in the sample leading to freezing UI when clicking any button, not just async one. Thanks to help from the Telegram channel, it can be easily fixed by adding few things to the ReadMe (i just checked the code, there is no problem):

After Step 1 (using the template) i was missing the following: 1) .UseReactiveUI() 2) ViewModelBase : ReactiveObject is ObservableObject

So for guys like me, who just follow the ReadMe instead of cloning the code, those two things lead to the freezing UI.

Many thanks for all the work!