by Ashish Ashu
on Stack Overflow
See other posts from Stack Overflow
or by Ashish Ashu
Published on 2010-03-11T02:57:27Z Indexed on 2010/03/11 21:29 UTC
Read the original article Hit count: 463
I have a user control let say UC1 . This user control have viewmodel UC1_vm.
In the usercontrol UC1 I have a canvas in which drawing curve logic is implemented. This drawing curve logic is based on the data points property in the view model ( UC1_vm).
The data points property inside the view model change with different condition. The generation of data points is written in the View Model.
I want to bind the data points property in the view model to the draw curve logic inside the User control (view). I want whenever the data point property is changed in the view model , the canvas calls the draw curve method.
Can I set the set any property of canvas which when changed it calls the on paint logic auto matically?
Please suggest me the approach of implementing this scenario!!
© Stack Overflow or respective owner