Drag and drop does not work in a flyout with ShouldConstrainToRootBounds set to false #9276
Labels
area-DragAndDrop
area-Flyouts
bug
Something isn't working
closed-Fixed
Described behavior has been fixed.
fix-released
The fix has been in a release (experimental, preview, stable, or servicing).
team-Controls
Issue for the Controls team
Milestone
Describe the bug
When a flyout has 'ShouldConstrainToRootBounds=false' then no drag/drop events are called in the flyout and subsequently ListView/Gridview items do not drag and drop or reorder.
Steps to reproduce the bug
Expected behavior
Drag and drop events inside a flyout with 'ShouldConstrainToRootBounds=false' should trigger properly. Additionally ListView/GridView inside a flyout should support reordering and drag/drop too like how they function if they were in a regular window.
Screenshots
This image shows a GridView with AllowDrop="True", CanDragItems="True", CanReorderItems="True" inside a flyout with ShouldConstrainToRootBounds='false'. The GridView does not support reordering eventhough it works normally if the GridView was inside a Window.
Additionally the GridView has DragOver amd Drop events which were not triggering when inside the flyout. If i set the GridView to a 'Window' content it would trigger these events with expected behaviour
NuGet package version
WinUI 3 - Windows App SDK 1.5 Experimental 1: 1.5.231202003-experimental1
Windows version
Windows Insider Build (xxxxx)
Additional context
The apps I am making heavily utilise a out of bounds flyout to show the main content that contains lists and grids therefore it is important to support drag and drop events for my usecase. I know UWP out of bounds flyout supported listening to drag and drop events.
The text was updated successfully, but these errors were encountered: