ObservableProperty & NotifyCanExecuteChanged #82
-
I am declaring properties using the quick attribute tag '[ObservableProperty]', this is working great as a shorthand for declaring a property that implements that should be wrapped by a generated observable object. Many thank in advance |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
There's a [AlsoNotifyCanExecuteFor] attribute in the source code. There hasn't been an updated NuGet package since before it was added though. I'm sure it will be in the next update. Until then your stuck using a full property. |
Beta Was this translation helpful? Give feedback.
-
As others have mentioned, you can do this by using |
Beta Was this translation helpful? Give feedback.
As others have mentioned, you can do this by using
[AlsoNotifyCanExecuteFor]
, which is available in 8.0.0 Preview releases 🙂