diff --git a/src/GongSolutions.WPF.DragDrop/DragDrop.Properties.cs b/src/GongSolutions.WPF.DragDrop/DragDrop.Properties.cs
index ac2be346..7782662e 100644
--- a/src/GongSolutions.WPF.DragDrop/DragDrop.Properties.cs
+++ b/src/GongSolutions.WPF.DragDrop/DragDrop.Properties.cs
@@ -1614,7 +1614,7 @@ public static void SetSelectDroppedItems(DependencyObject element, bool value)
}
///
- /// Gets or sets the that will be used as .
+ /// Gets or sets the that will be used as .
///
public static readonly DependencyProperty DropTargetScrollViewerProperty
= DependencyProperty.RegisterAttached("DropTargetScrollViewer",
@@ -1624,7 +1624,7 @@ public static readonly DependencyProperty DropTargetScrollViewerProperty
/// Helper for getting from .
/// to read from.
- /// Gets the that will be used as .
+ /// Gets the that will be used as .
/// DropTargetScrollViewer property value.
[AttachedPropertyBrowsableForType(typeof(UIElement))]
public static ScrollViewer GetDropTargetScrollViewer(DependencyObject element)
@@ -1635,7 +1635,7 @@ public static ScrollViewer GetDropTargetScrollViewer(DependencyObject element)
/// Helper for setting on .
/// to set on.
/// DropTargetScrollViewer property value.
- /// Sets the that will be used as .
+ /// Sets the that will be used as .
[AttachedPropertyBrowsableForType(typeof(UIElement))]
public static void SetDropTargetScrollViewer(DependencyObject element, ScrollViewer value)
{
diff --git a/src/GongSolutions.WPF.DragDrop/DragDrop.cs b/src/GongSolutions.WPF.DragDrop/DragDrop.cs
index ccbec639..5be9f6aa 100644
--- a/src/GongSolutions.WPF.DragDrop/DragDrop.cs
+++ b/src/GongSolutions.WPF.DragDrop/DragDrop.cs
@@ -467,7 +467,7 @@ private static void DoMouseButtonDown(object sender, MouseButtonEventArgs e)
DragSourceDown(sender, dragInfo, e, elementPosition);
}
- private static void DragSourceDown(object sender, DragInfo dragInfo, InputEventArgs e, Point elementPosition)
+ private static void DragSourceDown(object sender, IDragInfo dragInfo, InputEventArgs e, Point elementPosition)
{
if (dragInfo.VisualSource is ItemsControl control && control.CanSelectMultipleItems())
{
@@ -619,7 +619,7 @@ private static void DoDragSourceMove(object sender, Func g
&& (Math.Abs(position.X - dragStart.X) > DragDrop.GetMinimumHorizontalDragDistance(dragInfo.VisualSource) ||
Math.Abs(position.Y - dragStart.Y) > DragDrop.GetMinimumVerticalDragDistance(dragInfo.VisualSource)))
{
- dragInfo.RefreshSelectedItems(sender);
+ dragInfo.RefreshSourceItems(sender);
var dragHandler = TryGetDragHandler(dragInfo, sender as UIElement);
if (dragHandler.CanStartDrag(dragInfo))
@@ -1040,7 +1040,7 @@ private static DropTargetAdorner DropTargetAdorner
}
}
- private static DragInfo _dragInfo;
+ private static IDragInfo _dragInfo;
private static bool _dragInProgress;
private static object _clickSupressItem;
diff --git a/src/GongSolutions.WPF.DragDrop/DragInfo.cs b/src/GongSolutions.WPF.DragDrop/DragInfo.cs
index 99e79a8f..d29a65d6 100644
--- a/src/GongSolutions.WPF.DragDrop/DragInfo.cs
+++ b/src/GongSolutions.WPF.DragDrop/DragInfo.cs
@@ -197,7 +197,8 @@ public DragInfo(object sender, object originalSource, MouseButton mouseButton, F
this.SourceItems ??= Enumerable.Empty