NavigationView or something similar? #14257
Replies: 11 comments
-
Not in core Avalonia, no. I'm not sure if anyone has tried implementing it. |
Beta Was this translation helpful? Give feedback.
-
With SplitView done I think the WinUI NavigationView can be ported to C# and brought over. This is a fundamental control to several modern UWP/WinUI apps and will significantly lower the barrier of entry for applications coming over to Avalonia. I definitely think this is a control that should go into the main repo. |
Beta Was this translation helpful? Give feedback.
-
I should add, @Kinnara already has a nice C# port completed here: https://github.com/Kinnara/ModernWpf/tree/master/ModernWpf.Controls/NavigationView |
Beta Was this translation helpful? Give feedback.
-
The latest hierarchical Navigation View from WinUI depends on the ItemsRepeater now. I believe Avalonia's ItemsRepeater does not support Tree structures (for good reasons). So this might create a hinderance from porting over the latest code. This is more a note to anyone who might want to port this over -- myself included. |
Beta Was this translation helpful? Give feedback.
-
SelectionModel tree structure is required, because even top and bottom lists is represented as two leafs of the selection tree. Right now it is possible to implement old variation of NavigationView, or wait for updated SelectionModel, or implement internal replacement. |
Beta Was this translation helpful? Give feedback.
-
@maxkatz6 Yes, I was thinking we wait for the new SelectionModel rather than port the old version at this point -- sorry I misspoke talking about the ItemsRepeater and SelectionModel together. I would love to trial porting some UWP apps over to Avalonia but without NavigationView its just too much work to get them running at first. If other things don't pan out I might be targeting Avalonia sooner rather than later though and will contribute this control myself if that time comes (along with finishing up/improving ColorPicker :) ). I firmly believe Avalonia has the best architecture/code-quality and is the future UI stack we will all want to be moving to. |
Beta Was this translation helpful? Give feedback.
-
We really need a proper NavigationView!!! |
Beta Was this translation helpful? Give feedback.
-
@kvalitetskontrollMarkaryd |
Beta Was this translation helpful? Give feedback.
-
I don't have the required skills. I have found this: https://github.com/amwx/FluentAvalonia Looks promising! |
Beta Was this translation helpful? Give feedback.
-
I'm curious if there has been any recent discussions about NavigationView. The Fluent Avalonia port is the de-facto Avalonia version of this control now and it would be great to pull it into mainline Avalonia itself. I know there was discussion with the core team about this in the past based on this comment. Is there any chance after @amwx does his round of updates for Windows 11 this can be pulled into Avalonia?
|
Beta Was this translation helpful? Give feedback.
-
As of today, I've started using the NavigationDrawer from Material.Avalonia, for both Desktop and Android platforms. It does the job I needed. |
Beta Was this translation helpful? Give feedback.
-
Does Avalonia provides something equivalent/similar to NavigationView layout?
https://docs.microsoft.com/it-it/windows/uwp/design/controls-and-patterns/navigationview
Beta Was this translation helpful? Give feedback.
All reactions