SetAllowDrag crash

3 posts, 0 answers
  1. Frédéric De Lène Mirouze
    Frédéric De Lène Mirouze avatar
    14 posts
    Member since:
    Sep 2009

    Posted 11 Feb 2010 Link to this post

    hello

    I get a NullReferenceException when doing this:

    RadDragAndDropManager.SetAllowDrag(this, true);

     


    I tried with:

     

    RadDragAndDropManager.SetAllowDrop(this, true);

     


    This is working fine

    I also tried:

    this.SetValue(RadDragAndDropManager.AllowDrag,true);

    This line crash as well

    Does anybody have an idea?

     

     

  2. Frédéric De Lène Mirouze
    Frédéric De Lène Mirouze avatar
    14 posts
    Member since:
    Sep 2009

    Posted 11 Feb 2010 Link to this post

    I found the solution


    following a bad management of our splash screen, it appeared that Application.Current.MainWindow arrived null

    this caused a Telerik internal function to scrash

    I just set it to the main page of the application and it went right



    I suggest that Telerik make a specific test in order to get a cleaner error message
  3. UI for WPF is Visual Studio 2017 Ready
  4. Tihomir Petkov
    Admin
    Tihomir Petkov avatar
    576 posts

    Posted 12 Feb 2010 Link to this post

    Hello Frédéric,

    Thank you for your feedback. We will improve the exception in this scenario.

    All the best,
    Tihomir Petkov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top