Can I notify a class instance to make the view changed when any of it's fields has changed? #15803
-
I have a Test instance, when it's fields has changed in the command, Can I notify the instance to make the view changed? I cannot use CommunityToolkit.Mvvm
} public class Test |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
No, that's not working. Either you wrap your item in a helper class or replace the entire test instance afaik |
Beta Was this translation helpful? Give feedback.
-
I would argue you are not following the correct pattern here. Generally, only view models should be exposed to the view. If you need to expose a non view model, it should be wrapped by a view model. EG You might have a |
Beta Was this translation helpful? Give feedback.
No, that's not working. Either you wrap your item in a helper class or replace the entire test instance afaik