Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drag and drop does not work in a flyout with ShouldConstrainToRootBounds set to false #9276

Closed
FireCubeStudios opened this issue Jan 22, 2024 · 0 comments
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

Comments

@FireCubeStudios
Copy link

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

  1. Create a flyout with ShouldConstrainToRootBounds="false"
  2. add a listview into the flyout and set AllowDrop="True", CanDragItems="True", CanReorderItems="True"
  3. Notice that the listview does not re order items and events like DragOver and Drop do not call

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

image

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.

@FireCubeStudios FireCubeStudios added the bug Something isn't working label Jan 22, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Jan 22, 2024
@bpulliam bpulliam added area-Flyouts team-Controls Issue for the Controls team area-DragAndDrop and removed needs-triage Issue needs to be triaged by the area owners labels Jan 22, 2024
@llongley llongley added this to the WinAppSDK 1.6 milestone Aug 20, 2024
@llongley llongley added the closed-Fixed Described behavior has been fixed. label Aug 20, 2024
@codendone codendone added the fix-released The fix has been in a release (experimental, preview, stable, or servicing). label Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

4 participants