3 ms·
I really really want property change notifications on auto-properties. Having to compare the incoming value against an explicit backing field is the cause of mo
by jsmeaton 12y ago
I really really want property change notifications on auto-properties. Having to compare the incoming value against an explicit backing field is the cause of most of my boilerplate code when using WPF.
- seanmcdirmid 12y agoI wrote a framework that wrapped dependency properties to accomplish things like this once: http://bling.codeplex.com http://bling.codeplex.com But my feeling is that it was kind of hopeless to do in C#: it is just so different from the language semantics. Something like FRP (real FRP, not Rx) or managed time [1] works much better, IMHO, but requires drastic language changes. JavaFX Script (F3) also included data binding straight into the language, and is probably an idea of how to do it for C#. [1] http://research.microsoft.com/en-us/people/smcdirm/managedtime.aspx http://research.microsoft.com/en-us/people/smcdirm/managedti...