rodriwasabi / gong-wpf-dragdrop

Automatically exported from code.google.com/p/gong-wpf-dragdrop
0 stars 1 forks source link

Null Reference Exception #47

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
In DragDrop.cs

static bool HitTestScrollBar(object sender, MouseButtonEventArgs e)
{
HitTestResult hit = VisualTreeHelper.HitTest((Visual)sender, 
e.GetPosition((IInputElement)sender));
            return hit != null && hit.VisualHit.GetVisualAncestor<System.Windows.Controls.Primitives.ScrollBar>() != null;
}

The HitTestResult was null.  I added the 'hit != null &&' to the condition in 
the return value.

Original issue reported on code.google.com by stevegcu...@gmail.com on 17 May 2012 at 7:51

GoogleCodeExporter commented 8 years ago
hi

this is a duplicate to issue 34 
http://code.google.com/p/gong-wpf-dragdrop/issues/detail?id=34

and is fixed in 0.1.3.3

https://github.com/punker76/gong-wpf-dragdrop
https://nuget.org/packages/gong-wpf-dragdrop/

jan

Original comment by punkera...@gmail.com on 16 Feb 2013 at 9:02