-
Notifications
You must be signed in to change notification settings - Fork 710
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
Proposal: ToolBar Control #1473
Comments
The WinUI equivalent of a toolbar is the ApplicationBar, CommandBar, and the CommandBarFlyout. If you were to use that as a base and then list what additions would be needed to support your toolbar needs - that would be a better start. Placement on the sides, as well as docking, undocking, resizing, and rearranging buttons, would make a lot of sense. The navigation view is not a toolbar, and performs navigation, not commands. |
I actually listed all of that in the bullet points above. Let me clean it up some more. |
The new AppWindow was/is eventually supposed to support this. See the Build 2018 video at this timestamp. It was referenced as "Dockable Tools" there. |
I did some reading on it. It seems like AppWindow won't come until WinUI 3.x |
Realistically this control would most likely be a modified CommandBar (as @mdtauk mentioned) that undocks into an AppWindow for floating and "screen docking" as shown in the Build video. Creating the static control is fairly straightforward. The complex part is supporting intra-app docking in the style of Visual Studio. For that you need to both have a system defined for what UI element(s) it can dock inside of (maybe something like a new Page subclass), and a system to indicate to the user where the docking is going to happen (like the overlays shown in VS). The whole "docking" system should probably not be specific to this toolbar control as there have been other requests to dock entire UI panels/pages. |
It looks like what I am asking for is literally what was shown in the build video above from 2018 with the ability to resize it. But it looks like is is a while off. |
#668 sounds like the overall "docking system" I was referring to in the above comment. This proposal is then for a specialized toolbar control that would be using said docking system. ~Really just a CommandBar with a drag-grip that can reflow vertically, and maybe have >1 row/column. I'm not sure how the "screen docking" in the Build 2018 video would play with intra-app docking, or if there is any code behind that feature yet. |
To me the "tool palette control" is basically an ItemsRepeater. There was a talk of IconButton in some other issue I can't remember, to save the need for retemplating |
A toolbar when docked, and "attached" to the edge of a UI element, unless it is detached, then it would be in a ToolWindow which moves along with the app's main window. This is one of the scenarios that the new Windowing APIs are making possible. |
Are there any updates on this proposal? I am very interested in this type of functionality for the application I am currently working on. In my case I want floating commandbars that are similar to the Photoshop floating pallet idea. They don't have to dock. |
The lack of a docking system in general is the #1 issue that's been keeping me away from WinUI. |
Proposal: [ToolBar Control / Or Add the ability to Undock the Navigation View]
Summary
I was looking at how one would migrate a complex paint program such as Photoshop' toolbars to WinUI. My idea is based on the NavigationView control being undockable.
Rationale
I was looking at how one would take a complex paint program such as Photoshop, Paint.net, or Gimp and upgrade it to WinUI. Navigation View and a Ribbon Control would take care of the menus and options at the top, but how would a toolbar on the side be handled? It dawned on me, that the NavigationView assigned to the left with the ability to undock would serve as a great way to cover this use case.
Scope
Important Notes
Open Questions
The text was updated successfully, but these errors were encountered: