Open bramborman opened 6 years ago
There could also be a different way, such as something like Connected properties. Connected property would be property bound to a different property using converter. But that would disallow connecting more than two properties or at least made it harder.
Let's have two properties:
In this case,
Y
depends onX
and if we want to bind toY
we have to manually invoke thePropertyChanged
event everytimeX
changes.So if we added a new overload/method, or maybe changed
RegisterXXXProperty
methods to have optional arguments while adding a new one to pass names of properties for which the event should be invoked, this could easily be automated.