none
WPF MouseEnter does not fire when MouseButton is Pressed RRS feed

  • Question

  • Hi,

    I have multiple controls in a stack, now i started dragging first item to 5th position. But while moving over other items in the stack, there MouserEnter is not firing while i am dragging the item. Please help over it.

    Any clue or workaround to fix this.

    Thanks in Advance

    Regards

    Ankur Rastogi



    • Edited by ankurastogi Friday, September 20, 2019 9:11 AM
    • Moved by KareninstructorMVP Friday, September 20, 2019 11:42 AM Moved from Windows forms forum
    Friday, September 20, 2019 9:08 AM

All replies

  • You've not shown us any code so specific advice is tricky.

    Perhaps you should be handling some or all of dragenter, dragover and dragleave.

    https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/drag-and-drop-overview

    And of course if you're moving a control under the cursor then your cursor is inside that.


    Hope that helps.

    Technet articles: WPF: Layout Lab; All my Technet Articles

    Saturday, September 21, 2019 12:52 PM
    Moderator