Drag and Drop exception in MVVM example

2 posts, 0 answers
  1. Thomas
    Thomas avatar
    22 posts
    Member since:
    Oct 2012

    Posted 13 May 2014 Link to this post


    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? 
  2. Zarko
    Zarko avatar
    755 posts

    Posted 15 May 2014 Link to this post

    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.

    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.
Back to Top