ObservableProperty - Is there any difference with CommunityToolkit.Mvvm implementation? #40
-
What is the reason for having |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @tranb3r the ObservableProperty in this packaged is inspired by the CommunityToolkit.Mvvm but the key difference is this is to be usable on BIndableObjects such as ContentView, ContentPage, etc whereas the CommunityToolkit.Mvvm will not work with those because they rely on a different/incompatible OnPropertyChanged() implementation. Horses for courses. You can mix CommunityToolkit.Mvvm RelayCommandAttribute with SQuan.Helpers.Maui.Mvvm. I've put various examples demonstrating this. |
Beta Was this translation helpful? Give feedback.
Hi @tranb3r the ObservableProperty in this packaged is inspired by the CommunityToolkit.Mvvm but the key difference is this is to be usable on BIndableObjects such as ContentView, ContentPage, etc whereas the CommunityToolkit.Mvvm will not work with those because they rely on a different/incompatible OnPropertyChanged() implementation.
Horses for courses. You can mix CommunityToolkit.Mvvm RelayCommandAttribute with SQuan.Helpers.Maui.Mvvm. I've put various examples demonstrating this.