You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using CommunityToolkit.Mvvm in my WPF application. I have an ObservableProperty I want to validate, but the validation it too complex for an attribute. I'm already overriding the OnChanged event. Is there a way I can add custom validation to that event? So far in my research I haven't found a way to add to the errors collection, nor trigger the error event.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm using CommunityToolkit.Mvvm in my WPF application. I have an ObservableProperty I want to validate, but the validation it too complex for an attribute. I'm already overriding the OnChanged event. Is there a way I can add custom validation to that event? So far in my research I haven't found a way to add to the errors collection, nor trigger the error event.
Beta Was this translation helpful? Give feedback.
All reactions