-
-
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
Extend SplitView #14346
Comments
I would like to provide an example. I would love to see if something comparable would find its way to Avalonia. TopViewExample.2024-02-02.12-01-38.mp4 |
@CodeDevAM it should be possible to improve SplitView, but as you can see, this layout can be implemented relatively easy even without SplitView. The problem with SplitView is that it can work in overlay mode, on top of main content. And simple Grid + GridSplitter combination won't work well. Instead, there should be a Thumb and manually pointer events handling, adjusting PaneWidth. |
Just for fun: The overlay feature is realativly easy to add: In the end I don't care how it's working under the hud. But having a pane that extends from top to bottom would be nice. It's a very cool feature for some options that you want to hide most of the time and display them only if needed. It could also be an alternative to an Expander. |
API wise I suggest these new StyledProperties:
Add new (not required) TemplatePart: PART_OpenPaneResizeThumb (is only visisble if Pane is open && CanUserResizeOpenPane) |
Will this become a modification of Maybe this could be considered as a replacement for How can I support? |
it should be improvement to current SplitView, I don't see it breaking current impl. |
I need to say I am not deep into the concepts and the idea how Avalonia is implemented under the hood. But I want to learn. Is there a documentation about this? I has taken a look into https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Controls/SplitView/SplitView.cs I did notice that setting the position of the pane basically results in adding a pseudo class to the |
check FluentTheme and SimpleTheme projects for it. |
Note, since SplitView is ported from UWP/WinUI, it's always a good idea to research how they dealt with the same issues. For example, while GridSplitter is only usable with actual Grids, UWP (specifically Windows Community Toolkit) have added PropertySizer control: Which can be used to resize bind width of the split view. |
Also CommunityToolkit/WindowsCommunityToolkit#4672 |
Is there a need to keep the implementations similar or in sync? |
I would like to propose that a SplitView could also expand from top to bottom.
On top of that I would Like to propose that the size of the pane could be given as a proportion of the parent size.
Last but not least it would be great of the User could change the size of the expanded pane with some kind of GridSplitter.
The text was updated successfully, but these errors were encountered: