Replies: 1 comment
-
I normally use something like this: https://github.com/canton7/Stylet/blob/master/Stylet/PropertyChangedExtensions.cs That lets you do: someViewModel.Bind(x => x.FirstName, (o, e) => ...); That subscribes to the PropertyChanged event, filtering on when the PropertyName is "FirstName". |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I often want to expose just a single property as an event. For example:
This allows WPF binding to work on all properties via INotifyPropertyChanged but allows my own back-end code to just subscribe to the only event it needs. This avoids me needing to do a string comparison on the property name if all I care about is one property.
I am not suggesting that this should be the default, but it would be awesome if this was an option via the
[Notify]
attribute!Beta Was this translation helpful? Give feedback.
All reactions