mirror of
https://github.com/Tichau/FileConverter.git
synced 2026-11-19 09:01:32 +01:00
Clear highlighted object after drag.
This commit is contained in:
1 parent
e02a11bbb9
commit
cbcc0c536f
1 file changed
+5
-5
@@ -145,6 +145,11 @@ namespace FileConverter.Views
|
||||
Debug.Assert(draggedItem != null, "draggedItem != null");
|
||||
draggedItem.IsSelected = true;
|
||||
}
|
||||
|
||||
if (dataObj.GetData("HighlightedItem") is TreeViewItem highlightedItem)
|
||||
{
|
||||
highlightedItem.BorderThickness = new Thickness(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -193,11 +198,6 @@ namespace FileConverter.Views
|
||||
|
||||
this.MoveItem(nodeToDrag, target, position);
|
||||
|
||||
if (args.Data.GetData("HighlightedItem") is TreeViewItem highlightedItem)
|
||||
{
|
||||
highlightedItem.BorderThickness = new Thickness(0);
|
||||
}
|
||||
|
||||
args.Effects = DragDropEffects.Move;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user