MVVM Connection Issue

2 posts, 0 answers
  1. Kent
    Kent avatar
    10 posts
    Member since:
    Jan 2012

    Posted 16 Jul 2013 Link to this post

    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?
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 17 Jul 2013 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top