On Win 10 system, when drag a shape the previewkeydown event trigger

5 posts, 0 answers
  1. rui
    rui avatar
    34 posts
    Member since:
    May 2014

    Posted 06 May Link to this post

    On win10 system, when drag a shape,  the driagrm's  previewkeydown event trigger.

    on win7 system this case is not exist,

    on  win10 system, when open the vs with administrator, the case is also not exist  

    attached is the demo 

    Is any resolution to resolve this issue

  2. Dinko
    Admin
    Dinko avatar
    206 posts

    Posted 11 May Link to this post

    Hello rui,

    It seems that your demo project failed to attach. Could you resend it so we can investigate the behavior mentioned in your post on our side?

    Thank you for your cooperation.

    Regards,
    Dinko
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
  4. rui
    rui avatar
    34 posts
    Member since:
    May 2014

    Posted 11 May Link to this post

    it seem i can only attach a picture file 

    the demo is simple  when drag  a shape the  previewmousedown envnt is raised 

    code like this :

     private void diagram_PreviewKeyDown_1(object sender, KeyEventArgs e)
            {
                MessageBox.Show("Win10 system when drag a node this event trigger");
            }

  5. Dinko
    Admin
    Dinko avatar
    206 posts

    Posted 14 May Link to this post

    Hello rui,

    We weren't able to reproduce the described behavior. We have tested it on several different machines with different OS systems (Win10, Win 8.1, Win 7) with no success. 

    As a side note, it sounds very strange that PreviewKeyDown event is called when RadDiagramShape is dragged. You can double check your code if there could be any other reason causing this behavior. We have attached to this reply the sample project which we were using to test your scenario. You can check it if we are missing something.

    We are looking forward to your answer.

    Regards,
    Dinko
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  6. rui
    rui avatar
    34 posts
    Member since:
    May 2014

    Posted 16 May in reply to Dinko Link to this post

    The demo you sent is almost same as my side's

    but It is strange that the problem is not exist now on my side

    It is not a certain problem

    I will continue to observe it

     

    Thank you 

     

Back to Top
UI for WPF is Visual Studio 2017 Ready