Binding to object properties in C++
- by Rich.Carpenter
I've seen in WPF where you can bind control values to properties of other controls. How is that binding accomplished in C++?
For example, if I have a class called Car and a guage control called RPM, how do I tie the value of RPM to the member variable Car.RPM, so that when Car.RPM changes, it is automatically (as in without a specific update call coded by me) reflected by the RPM control?
General answers or directions to pertinent resources would be fine also, as I'm just beginning to dabble in C++ and haven't had much Google luck with this particular question.