This project is read-only.
1

Closed

No click event in FluidWrapPanel

description

Using the "FluidMouseDragBehavior" with "DragButton=Left" inside of a tile "UserControl" in the "FluidWrapPanel" seems to steal the click event for any child controls. I tried to create a button inside of the item and never get a click event unless I remove the behavior or change the "DragButton".
 
Would appreciate if the behavior still supported event bubbling, so I could access the event.
Closed Dec 13, 2012 at 9:13 AM by RatishPhilip
Listening to the MouseUp, MouseDown events instead of PreviewMouseUp, PreviewMouseDown events will solve the issue.Fix incorporated in v1.2

comments

RatishPhilip wrote Mar 5, 2012 at 8:19 AM

Thanks for reporting the issue. I have a solution for that. If you look at the FluidMouseDragBehavior class, I am listening to the PreviewXXX events (i.e. PreviewMouseDown, PreviewMouseUp and PreviewMouseMove). Instead, listening to the XXX events (i.e. MouseUp, MouseDown & MouseMove events) will solve the problem.
I will include this bug fix in the next iteration of WPFSpark.

jvlppm wrote Apr 14, 2012 at 5:42 PM

I am using the 1.1 Nuget version of the WPFSpark, the click on a button does work, but when you try to just drag a button, it also does the click when you release the mouse button.

So still you cant use the drag on the left mouse button.

wrote Dec 13, 2012 at 9:13 AM

wrote Feb 14, 2013 at 8:28 PM

wrote May 16, 2013 at 10:22 AM