-
Notifications
You must be signed in to change notification settings - Fork 692
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 for navigation seems broken in lastest pre-release! #3290
Comments
@Parth Was this working for you in a 2.5 pre-release but then regressed in a newer one? Could you specify which release it was working in and which one it stopped ? What do you mean by drag and drop being disabled ? |
Not sure if you looked into the issue I linked. Before the prerelease I was facing a bug regarding highlight of the navigationview. But here drag and drop is working. This video doesn't capture the tooltip I see when I drag and drop (perhaps a bug in game bar or whatever) but you can see both drag and drop working and the bug I talked about in #3131 in this video. 2.4.3: https://youtu.be/1MSW26ipDls Now in the 2.5 prerelease (I tried them all), one of these issues is solved, but another is created: https://youtu.be/aCfrSwZzdjI None of the code has changed, regardless of how hard I try dragging and dropping just behaves as if all of the |
@Parth would you be able to share a small repro app showing your issue ? That would really help debug. @StephenLPeters can you think of any recent changes NavView change that could have caused this ? It might be worth adding a test for this scenario. |
@chingucoding and/or @Felix-Dev did the change to treeview's drag and drop behavior get checked in already? could that be causing this? |
Silly me, H-Navview doesn't use tree view |
I don't think that those went in yet, but even if so, NavigationView uses ItemsRepeater, not Treeview so that shouldn't make a difference. |
@StephenLPeters Exactly as @chingucoding said :) |
@ranjeshj I believe you could create a minimal repro with UWP sample code + add drag and drop to the My source is available here. More specifically this is my xaml (very small). You wouldn't have any problems running the project as is. |
The newest prerelease ( behavior in 2.4: behavior in the 2.5 prereleases: Notice the footer has been pushed down. I think there's a serious regression to the
The surface area of the app I've linked is really pretty low, and is a reasonable starting point for such an effort. I would be happy to assist in the effort, but as it stands right now, there's a minor bug in 2.4 associated with this element, and a major bugs in all the 2.5 releases, and it's pretty concerning, to say the least. |
@Parth Can you open a new issue for this specific Footer/Settings button behavior? (I am seeing this as well in case of the Settings item. With latest two WinUI 2.5 previews, the Settings item is now no longer always visible but will be pushed out of the screen by NavigationView menu items (if there are enough visible). I don't think this change was intended but more can be discussed in its own issue on the repo. This change seems to have happened as part of the recent footer menu items work.) |
I don't think this was intended either. Lets get it a dedicated issue and we can see about fixing it for the next prerelease. |
I am getting this same issue after updating to WinUI 2.5. |
This seems to be still an issue even on 2.7.0, and also on 2.6.2 and below. I created a simple test using XAML Controls Gallery. I made a simple test adding "CanDrag="True" on a release that have the WinUI 2.4.0-prerelease.200414001, and on the last main commit, that have WinUI 2.7.0-prerelease.210816001. On the 2.4.0 it's working as expected, while on the 2.7.0 no. 2.4.0 version, with the last NavigationView example, which is the one that I modified, is working: 2.7.0 version, with the same modification on the last NavigationView example, is not working: You can check those examples with that little modification on my fork: 2.4.0 which is working: https://github.com/BanCrash/Xaml-Controls-Gallery/tree/2.4.0-prerelease.200414001 2.7.0 which is not working: https://github.com/BanCrash/Xaml-Controls-Gallery/tree/2.7.0-prerelease.210816001 NOTE: I understand that 2.7.0 is a preview version, but on stable versions of 2.5 / 2.6 is not working neither... |
Unfortunately we've yet to have the bandwidth to prioritize this :( We understand it is broken but are juggling competing priorities. |
PSA, we are using the winui 2.8 milestone for tracking purposes, it is not meant to indicate that we are committing to that work. |
It's been 2 years. Any update for this bug? |
This allows dragging but does not trigger DragStarting |
@hecksmosis You should be able to attach that to the NavigationItemViewPresenter as well. https://github.com/drasticactions/MauiFeed/blob/main/src/MauiFeed.WinUI/Views/FeedSidebarItem.cs#L237-L252 I have an example of it in my app. Basically, you would attach that the same way as you would normally to a given element. Note that this is very much a "workaround" hack and shouldn't be needed. It would be great if the underlying issue here would be fixed, as it should be possible to do this with a Navigation item normally, and I'm not sure what's blocking it from working. |
There are a number of use cases where this bit of functionality would be useful. I understand that there may be competing priorities for the next release, but it would be great if this could be looked at with it being in the backlog for nearly 2 years. |
Are there any updates on this issue? |
Prompted by #3131 issue I was asked to update to the latest pre-release.
Updating to this seems to completely disable drag and drop regardless of
CanDrop
and related settings.The text was updated successfully, but these errors were encountered: