From 04d43abe7efc924efb8d3dd56987eb5375fce8cc Mon Sep 17 00:00:00 2001 From: toengi Date: Thu, 4 Dec 2014 10:55:48 +0100 Subject: [PATCH] Update DragDrop.cs Added HitTest4Type in DragSource_PreviewMouseLeftButtonDown --- GongSolutions.Wpf.DragDrop/DragDrop.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GongSolutions.Wpf.DragDrop/DragDrop.cs b/GongSolutions.Wpf.DragDrop/DragDrop.cs index ea489b64..656781c6 100644 --- a/GongSolutions.Wpf.DragDrop/DragDrop.cs +++ b/GongSolutions.Wpf.DragDrop/DragDrop.cs @@ -638,6 +638,7 @@ private static void DragSource_PreviewMouseLeftButtonDown(object sender, MouseBu var elementPosition = e.GetPosition((IInputElement)sender); if (e.ClickCount != 1 || HitTestUtilities.HitTest4Type(sender, elementPosition) + || HitTestUtilities.HitTest4Type(sender, elementPosition) || HitTestUtilities.HitTest4Type(sender, elementPosition) || HitTestUtilities.HitTest4Type(sender, elementPosition) || HitTestUtilities.HitTest4Type(sender, elementPosition) @@ -932,4 +933,4 @@ private static DropTargetAdorner DropTargetAdorner private static Point _adornerPos; private static Size _adornerSize; } -} \ No newline at end of file +}