Parameter for disable INotifyPropertyChanged
See original GitHub issueSometime I need disable Fody on one class. Now I must use attribute [DoNotNotify]
, but is not good resolved, because I must use Fody attribute for disable it in this class.
My idea. For Fody add option parameter implement fody in every INotyfyPropertyChanged
class.
When I need use Fody for INotyfyPropertyChanged, I use
[PropertyChanged.ImplementPropertyChanged]
class Person: INotyfyPropertyChanged
{...}
Issue Analytics
- State:
- Created 7 years ago
- Comments:34 (17 by maintainers)
Top Results From Across the Web
INotifyPropertyChanged Disable Button and CheckBox
The PropertyChangedEventArgs constructor takes a string as a parameter, where the string is the name of the property that was updated. The name ......
Read more >Parameter for disable INotifyPropertyChanged -
Sometime I need disable Fody on one class. Now I must use attribute [DoNotNotify] , but is not good resolved, because I must...
Read more >INotifyPropertyChanged Support | ReSharper Documentation
The INotifyPropertyChanged interface is widely used in .NET applications to send notifications when a property has changed its value.
Read more >Wpf MVVM, how to disable command based on error ...
I have a ValidatableBindableBase class that implements INotifyDataErrorInfo interface, and INotifyPropertyChanged interface. The validations ...
Read more >Commanding - .NET MAUI
You can set the CommandParameter property to arbitrary data to distinguish between multiple buttons if they are all bound to the same ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
There is already a way to move from opt-out to opt-in:
I use this successfully in a legacy project to scope the rewriting to only one namespace.
It would be really handy if the ImplementPropertyChanged would be opt in even for classes implementing INotifyPropertyChanged.