-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Feature: Added support for reordering items in the sidebar #11456
Conversation
The Glyph currently used for the icon in the items needs to be changed, does anyone know of a better icon to use there? |
Which icon? |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/Files.App/DataModels/NavigationControlItems/LocationItem.cs
Outdated
Show resolved
Hide resolved
Yes, I forgot to remove the logs, they are totally unnecessary |
Do you have any recent folders in the quick access widget? (I haven't tried it with folders that are not pinned because I recently reset the sidebar items) |
By the way, I can't reproduce the crashes on my end, any idea why they could be happening? |
Two things I noticed
|
Since you at-replied me this ended up in my email. I looked at your PR and I'm not sure you used my workaround, which may speak to @yaira2's issue. For microsoft/microsoft-ui-xaml#3290, I attach the "DragStarting" event to the underling "NavigationViewItemPresenter". That's a "workaround" (Hack) that lets me attach the same normal events that would be allowed for Elements to the NavigationItem. You can see it implemented here,https://github.com/drasticactions/MauiFeed/blob/main/src/MauiFeed.WinUI/Views/FeedSidebarItem.cs#L237-L252 In short, you would implement it the same way you would have to NavigationViewItem, but instead attach those events to the NavigationViewItemPresenter. Eventually, when the underling issue is fixed, you should be able to add those events back to the NavigationViewItem. |
True, I ended up not really using your workaround (sorry for the ping) |
I have no idea why that is happening: Crash.mp4It seems that |
Everything is fine now 👍 |
…iles into add_move_in_sidebar
I changed the ListViewItem to Grid and it now works fine, this is ready |
Should we display a progress ring and delay closing the dialog until the changes are saved? |
I don't think this is necessary, this is probably not going to be used very regularly, just occasionally |
The reason I think it's worth doing this (it's not a blocker) is that the app freezes and it's not exactly clear to the user what's happening in the background. |
Oh ok |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Should I open a PR with the progress ring? |
If you don't mind, thanks! |
@Wolfarelli can you open a feature request for this? |
Resolved / Related Issues
Items resolved / related issues by this PR.
Validation
How did you test these changes?
Screenshots (optional)
Add screenshots here.