Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upDocument tabs dragged like in XBAP #1468
Comments
I solved the issue....removed specific mouse events and reorded a few lines in LayoutDocumentTabItem protected override void OnMouseDown(System.Windows.Input.MouseButtonEventArgs e)
|
Hi, |
Hi, |
Hi, |
Hi,
|
Hi, I have a strange behaviour but only in XBAP mode. The same application and code is working well in my WPF container.
in XBAP, when i click on document tabs, sometimes the tab follow the mouse (and often undock) like if it was dragged by the user. I debug the code and it seems that MouseUp is not fired...then the move_event consider we drag it....
to overcome it I increase the delta by five....because i can't find out why there is not OnMouseLeftButtonUp event
LayoutDocumentTabItem ==>OnMouseMove
if( Math.Abs( ptMouseMove.X - _mouseDownPoint.X ) > SystemParameters.MinimumHorizontalDragDistance*5 ||......