Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

NavigationView or something similar? #2521

Closed
alessandrofrancesconi opened this issue May 14, 2019 · 11 comments
Closed

NavigationView or something similar? #2521

alessandrofrancesconi opened this issue May 14, 2019 · 11 comments
Labels

Comments

@alessandrofrancesconi
Copy link
Contributor

Does Avalonia provides something equivalent/similar to NavigationView layout?
https://docs.microsoft.com/it-it/windows/uwp/design/controls-and-patterns/navigationview

@grokys
Copy link
Member

grokys commented May 16, 2019

Not in core Avalonia, no. I'm not sure if anyone has tried implementing it.

@robloo
Copy link
Contributor

robloo commented Sep 9, 2020

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.

@robloo
Copy link
Contributor

robloo commented Sep 9, 2020

I should add, @Kinnara already has a nice C# port completed here: https://github.com/Kinnara/ModernWpf/tree/master/ModernWpf.Controls/NavigationView

@robloo
Copy link
Contributor

robloo commented Oct 27, 2020

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.

@maxkatz6
Copy link
Member

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.

@robloo
Copy link
Contributor

robloo commented Oct 27, 2020

@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.

@EtherGhost
Copy link

EtherGhost commented May 9, 2021

We really need a proper NavigationView!!!

@danwalmsley
Copy link
Member

We really need a proper NavigationView!!!

@kvalitetskontrollMarkaryd
If you or someone else wants to port that one from modern wpf it would be accepted .

@EtherGhost
Copy link

I don't have the required skills.

I have found this: https://github.com/amwx/FluentAvalonia

Looks promising!

@robloo
Copy link
Contributor

robloo commented Oct 5, 2021

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?

@amwx Is awesome! I do hope the FontIcons, NavigationView, updated themes, etc find their way into Avalonia itself. This has been discussed but not with the core maintainers afaik.

We had a discussion about the NavigationView a couple months ago. Not much movement on that since though b/c I've been working on some other things and there's a few things I'd like to clean up/fix with it before (and if) it gets moved (like supporting multiple datatemplates, which is what I'm trying to work out now). @maxkatz6 is working on Icons and his approach is probably better for the core repo since it's more flexible.

@alessandrofrancesconi
Copy link
Contributor Author

As of today, I've started using the NavigationDrawer from Material.Avalonia, for both Desktop and Android platforms. It does the job I needed.

@AvaloniaUI AvaloniaUI locked and limited conversation to collaborators Jan 17, 2024
@maxkatz6 maxkatz6 converted this issue into discussion #14257 Jan 17, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Projects
None yet
Development

No branches or pull requests

6 participants