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

MVVM Connection Issue

1 Answer 60 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Kent
Top achievements
Rank 1
Kent asked on 16 Jul 2013, 06:16 PM
I am trying to do MVVM with the diagram framework. I modified the MVVM example in the Telerik\xaml-sdk on github.

I am getting a crash when doing the following.  I create connector between a shape inside a
container with shape outside the container. Then I drag the shape outside the container into the container.

Then I immediately get this exception with this error message:
{"Unable to cast object of type 'Telerik.Windows.Controls.RadDiagramConnection' to type 'Telerik.Windows.Controls.Diagrams.Extensions.ViewModels.NodeViewModelBase'."} 


Is this a known bug?  Is there a way to do MVVM with diagram when having connectors and containers?

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 17 Jul 2013, 05:00 PM
Hello Kent,

This is indeed a known issue which is already fixed. The fix is available in the latest internal build of our RadControls for WPF. It will also be available with the upcoming Q2 2013 SP release.

Regards,
Tina Stancheva
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
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
Kent
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or