Skip to main content
Post Reopened by Mark Rotteveel, StayOnTarget, bfontaine
Post Closed as "Opinion-based" by TylerH, desertnaut, miken32
improved formatting, fixed grammer
Source Link
Naser Asadi
  • 1.2k
  • 1
  • 19
  • 36

Microsoft should have implemented something snappy for INotifyPropertyChangedINotifyPropertyChanged, like in the automatic properties, just specify {get;set;notify;}{get; set; notify;} I think it makes a lot of sense to do it. Or are there any complications to do it?

Can we ourselves implement something like 'notify' in our properties. Is there a graceful solution for implementing INotifyPropertyChangedINotifyPropertyChanged in your class or the only way to do it is by raising the PropertyChangedPropertyChanged event in each property.

If not can we write something to autogenerateauto-generate the peicepiece of code to raise PropertyChangedPropertyChanged event?

Microsoft should have implemented something snappy for INotifyPropertyChanged, like in the automatic properties, just specify {get;set;notify;} I think it makes a lot of sense to do it. Or are there any complications to do it?

Can we ourselves implement something like 'notify' in our properties. Is there a graceful solution for implementing INotifyPropertyChanged in your class or the only way to do it is by raising the PropertyChanged event in each property.

If not can we write something to autogenerate the peice of code to raise PropertyChanged event?

Microsoft should have implemented something snappy for INotifyPropertyChanged, like in the automatic properties, just specify {get; set; notify;} I think it makes a lot of sense to do it. Or are there any complications to do it?

Can we ourselves implement something like 'notify' in our properties. Is there a graceful solution for implementing INotifyPropertyChanged in your class or the only way to do it is by raising the PropertyChanged event in each property.

If not can we write something to auto-generate the piece of code to raise PropertyChanged event?

corrected spelling
Source Link
Alfred Myers
  • 6.5k
  • 1
  • 43
  • 70

M$Microsoft should have implemented something snappy for INotifyPropertyChanged, like in the automatic properties, just specify {get;set;notify;} I think it makes a lot of sense to do it. Or are there any complications to do it?

Can we ourselves implement something like 'notify' in our properties. Is there a graceful solution for implementing INotifyPropertyChanged in your class or the only way to do it is by raising the PropertyChanged event in each property.

If not can we write something to autogenerate the peice of code to raise PropertyChanged event?

M$ should have implemented something snappy for INotifyPropertyChanged, like in the automatic properties, just specify {get;set;notify;} I think it makes a lot of sense to do it. Or are there any complications to do it?

Can we ourselves implement something like 'notify' in our properties. Is there a graceful solution for implementing INotifyPropertyChanged in your class or the only way to do it is by raising the PropertyChanged event in each property.

If not can we write something to autogenerate the peice of code to raise PropertyChanged event?

Microsoft should have implemented something snappy for INotifyPropertyChanged, like in the automatic properties, just specify {get;set;notify;} I think it makes a lot of sense to do it. Or are there any complications to do it?

Can we ourselves implement something like 'notify' in our properties. Is there a graceful solution for implementing INotifyPropertyChanged in your class or the only way to do it is by raising the PropertyChanged event in each property.

If not can we write something to autogenerate the peice of code to raise PropertyChanged event?

Post Made Community Wiki
Source Link
P.K
  • 19.2k
  • 11
  • 49
  • 53

Implementing INotifyPropertyChanged - does a better way exist?

M$ should have implemented something snappy for INotifyPropertyChanged, like in the automatic properties, just specify {get;set;notify;} I think it makes a lot of sense to do it. Or are there any complications to do it?

Can we ourselves implement something like 'notify' in our properties. Is there a graceful solution for implementing INotifyPropertyChanged in your class or the only way to do it is by raising the PropertyChanged event in each property.

If not can we write something to autogenerate the peice of code to raise PropertyChanged event?