MVVM Toolkit: ObservableValidator and ObservableRecipient together ? #987
Replies: 2 comments 1 reply
-
@HispidaBytes this can be done with the new source generator support added in 7.1. @Sergio0694 was there an example of this somewhere you had yet? I know you haven't really updated the docs yet as the source generator stuff is still being worked on and considered 'in preview'. |
Beta Was this translation helpful? Give feedback.
-
There's an If you need to have your constructors, and also need the ones generated for ObservableRecipient, but are skipped (symptom: Pseudocode: [ObservableRecipient]
public partial class ObservableRecipientValidator: ObservableValidator { }
// Your class
public partial class MyClass: ObservableRecipientValidator { } |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am trying to migrate my application to MVVM Toolkit as MVVM framework and during the operation a question came up:
I wanted to know if it might be a good idea to have an "Observable" type that implements the same functionality as "ObservableRecipient" and "ObservableValidator".
I find myself in the situation where I have a ViewModel class that needs both messaging functionality between ViewModels and property validation.
Could this be a good idea or are there alternatives that I haven't considered?
Thank you 😊
Beta Was this translation helpful? Give feedback.
All reactions