Is it possible to create a textbox or other control that is bound to a variable or property?
I want to have a control that will show the current value of a control and update the variable with a new value if the control changes.
Is there some control I could download that already has this?
Would DataBindings be what your looking for? Binds a control to a property :
That’s how I did it in VB.NET, but i’m a bit rusty.
EDIT:
I believe you need to implement iNotifyPropertyChanged for the values to update:
Then make a function :
After, call the function in your property’s “set” area :
Example :
Examples taken from msdn : http://msdn.microsoft.com/en-us/library/ms743695.aspx