This is a migrated thread and some comments may be shown as answers.

RadDiagram : Conversion to MVVM

1 Answer 66 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Sherwin
Top achievements
Rank 1
Sherwin asked on 24 Jun 2013, 09:49 AM
Hi Telerik Team,

Currently, I am working on the conversion from a non-MVVM program to MVVM.

Previously, I used ConnectionManipulationCompleted(Code-Behind) event trigger of RadDiagram control. Within this event trigger, I am able to know the exact connection that was being drawn from a RadDiagramShape to another RadDiagramShape.

While I am on my way to MVVM approach, I faced some problem that is that I am not able to know which is exact connection that was being drawn as ConnectionManipulationCompleted(Code-Behind) event trigger does.

Hope you can help me on this.

The sample that I am used was from http://www.telerik.com/ClientsFiles/3eaf3a91-f06c-43e5-96b3-14dfe4a472f1_Connection-MVVM-LinkViewModel.zip.

Thanks. Your prompt reply will be very much appreciated.

Regards 
Sherwin 

1 Answer, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 27 Jun 2013, 08:05 AM
Hello Sherwin,

Thank you for providing us with detailed information about your scenario. I can see that you subscribe to the PropertyChanged event of the Link. This is the best approach to update all the properties of a Link in your View-Model. Currently, you check if the changed property is the Target. Also, you can check the Source property. By doing so you will be able to specify the exact connection that has been drawn by the user.

Please try this approach out and let me know if you have any other questions.

Regards,
Pavel R. Pavlov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
Diagram
Asked by
Sherwin
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or