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

Drag and Drop exception in MVVM example

1 Answer 28 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 13 May 2014, 06:53 AM
Hello, 

I have downloaded Diagram/MVVM_WPF examples, but when I run example, make a connection e.g. between R8 and Golf blocks, and after this move R8 block into Volkswagen container I got an exception "Unable to cast object of type 'Telerik.Windows.Controls.RadDiagramConnection' to type 'Telerik.Windows.Controls.Diagrams.Extensions.ViewModels.NodeViewModelBase'."

How to resolve this issue? 

1 Answer, 1 is accepted

Sort by
0
Zarko
Telerik team
answered on 15 May 2014, 08:37 AM
Hello Thomas,
Could you please try to change the Brand class like this:
public class Brand : ContainerNodeViewModelBase<object>
This should fix the exception.
If you have more questions please feel free to ask.

Regards,
Zarko
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
Diagram
Asked by
Thomas
Top achievements
Rank 1
Answers by
Zarko
Telerik team
Share this question
or