المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : How to do binding simple control and class



C# Programming
08-16-2010, 10:31 AM
Hi,

I wrote some simple class with 3 fields ( lets say that the fields are RGB ).
and i have some UI to define the value of those fields.

The UI is on class A and the class with the RGB values is in other class.

Now, I want to do binding between those two classes -
I mean that i want to do 'auto update' if the value in the UI change - and this 'auto update' will set the field value.

How can i do it ?

Thanks.