Quantcast
Channel: AvalonDock
Viewing all articles
Browse latest Browse all 2690

New Post: [Version 2.0] Mouse move event on child when dragging floating windows

$
0
0
I think it's a bug, but I would like to have a confirmation, and I really have no idea on how to fix it at the moment (will be updated later).
Step to reproduce with the MVVMTestApp:
  1. in the MainWindow, implements MouseMove on the TextBox of the FileView:
    line 68: replace
<TextBox Text="{Binding TextContent, UpdateSourceTrigger=PropertyChanged}"/>
by
<TextBox Text="{Binding TextContent, UpdateSourceTrigger=PropertyChanged}" MouseMove="UIElement_OnMouseMove"/>
and implement it in the code behind doing whatever you want.
  1. Build and run, then create a new file. Now drag the file directly above the top of the MainWindow (see this image). You'll see the event fired multiples times, altought you aren't moving your mouse over the TextBox.
To reproduce it, it's important to not release the left mouse button during the drag of the window.

I suppose that the problem come from the LayoutFloatingWindonwControl.cs, a message is probably wrongly handled, but I can't find where actually.

Please tell me if you managed to reproduce the bug, and what you think about that.

Viewing all articles
Browse latest Browse all 2690

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>