Noesis DragDrop.DoDragDrop incorrectly reporting effects
Posted: 30 Jun 2020, 06:53
The easiest way to observe this issue is in the Inventory sample project. Take an item from the inventory and drag it off screen. Inventory-Blend will correctly report the drag as failing and everything will work as it should. Inventory-Windows will report it as a success which will end up putting the project into an invalid state. The key code block in that project (DragItemBehavior.cs) is:
So it would seem that Noesis.DragDrop.DoDragDrop is not setting the effects to DragDropEffects.None when it should. As it seems this could possibly be OS related, I am currently testing this on a Windows 7 system. For the same reason the Inventory-windows project is using a WGL instead of D3D11 RenderContext.
One other question, is it more convenient for you guys to post things like this on the forum or should I instead post it over on the Bugtracker by default?
Code: Select all
DragDrop.DoDragDrop(this.AssociatedObject, item, DragDropEffects.Move,
(source, data, target, dropPoint, effects) =>
{
bool dragSuccess = effects != DragDropEffects.None;
if (EndDragCommand != null && EndDragCommand.CanExecute(dragSuccess))
{
EndDragCommand.Execute(dragSuccess);
}
});
One other question, is it more convenient for you guys to post things like this on the forum or should I instead post it over on the Bugtracker by default?