Unable to move item (drag and drop) inside TreeView in WinUI3 Desktop #2783
Labels
appModel-win32
Exclusive to WinUI 3 Win32 Desktop apps
area-TreeView
product-winui3
WinUI 3 issues
team-Reach
Issue for the Reach team
Describe the bug
We are able to move items around (drag and drop) inside a TreeView in our UWP application.
However, once we switched over to WinUI3 Desktop, we are no longer able to move items around (drag and drop) inside the TreeView.
Steps to reproduce the bug
Expected behavior
We expect to see the drag indicator change to "Move" and be able to drop items back onto the TreeView.
On the right side of the application, there is the TreeView Actions Log that tracks the drag and drop events to verify what is happening.
We expect to see the same behavior we saw in UWP. See Screenshot#3 and Screenshot#4
Build and run the DragDropTreeViewUWP solution inside the DragDropTreeViewUWP folder to see expected behavior.
Screenshots
Screenshot#1 - Current Behavior
Screenshot#2 - Current Behavior End Result
Screenshot#3 - Expected Behavior
Screenshot#4 - Expected Behavior End Result
NuGet package version:
[Microsoft.VCRTForwarders.140 1.0.6]
[Microsoft.WinUI 3.0.0-preview1.200515.3]
Targeting:
Target: Universal Windows
Target version: Windows 10, version 1809 (10.0; Build 17763)
Min version: Windows 10, version 1809 (10.0; Build 17763)
Additional context
When we debugged the solution, we noticed that the treeView1_DragItemsCompleted (MainPage.xaml.cs Line 72) does get called.
However, the drop was not allowed so the dropped node is the same as the dragged node.
The text was updated successfully, but these errors were encountered: