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
Added collapsible sections to the sidebar #3661
Added collapsible sections to the sidebar #3661
Conversation
@oleitao Is it possible to make the favorites section collapsible as well? |
hi, @yaichenbaum yes it's possible, I already have tried that.However, because sidebar controls are loaded as asynchronously the order which each section will be loaded on GUI wil differ. Clouc Drivers
Drivers
Home
|
@oleitao mmm curious, since we do have an order by which sidebar items are loaded. From App.xaml.cs: await SidebarPinnedController.CreateInstance(); --> load pinned folders
await DrivesManager.EnumerateDrivesAsync(); --> load fixed drives (after pinned folders)
await CloudDrivesManager.EnumerateDrivesAsync(); --> load cloud drives (after drives)
await NetworkDrivesManager.EnumerateDrivesAsync(); --> load network drives (after cloud) |
@gave92 i know that. If @yaichenbaum and @gave92 think it would be better to make the favorites section collapsible as well i can do it? However, i can't assore if i can load drivers sections in correct order. |
@oleitao yeah it would be better to make the favorites section collapsible as well but the order of the sidebar sections should be mantained too :) [I don't think I've understood what makes keeping the order difficult] |
-Replace System.Collections.Generic.List<INavigationControlItem> by ObservableCollection
@oleitao Can you keep track of the collapsed/expanded state so it's the same whenever the user opens the app? By default, other than the favorites section, all other sections should be collapsed. |
@yaichenbaum i added the feature you've requested |
Code cleanup & refactor Save expanded state Removed SidebarHome resource
Couple of notes:
|
@oleitao Is there a way to pin recycle bin regularly instead of putting it at the top of the favorites section? |
With the latest commit the bin it's always the last item of the favorites section (like the current behavior on |
That's should be enough for this pr. In the future, it should be in order of where it was pinned. |
@oleitao One last thing, can you move the home item into the favorites section? Eventually we will let users unpin it from the sidebar, so I think it makes sense to keep it with the other items that can be unpinned. |
yes, i already moved home item into favorites section |
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.
I think it's looking good, just missing the new section icons.
@gave92 Added favorite section icon commit |
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.
Great work!
Added Drivers and Cloud Drivers collapse groups on left side menu.