Skip to content
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 #40

Open
Tropix126 opened this issue Mar 15, 2022 · 4 comments
Open

NavigationView #40

Tropix126 opened this issue Mar 15, 2022 · 4 comments

Comments

@Tropix126
Copy link
Owner

One of WinUI's most important (and most complex) components is NavigationView, which provides the base layout for most apps. NavigationView provides the base layout for most apps with either a sidebar or navigation strip.

image

image

@Tropix126
Copy link
Owner Author

I think that it's probably best to split this into two components, considering how different they are. Also not sure about the viability of topnav's overflow menu with traditional slots. We'll see.

@Tropix126
Copy link
Owner Author

Tropix126 commented Mar 15, 2022

thinking of something like this

<NavigationView variant="standard | narrow | minimal" backButton menuButton expanded on:expand on:collapse on:back>
    <svelte:fragment slot="title">
        Header
    </svelte:fragment>

    <svelte:fragment slot="header">
        <AutoSuggestBox placeholder="Search" />
    </svelte:fragment>

    <svelte:fragment slot="items">
        <NavigationViewItem>Item 1</NavigationViewItem>
        <NavigationViewItem>Item 2</NavigationViewItem>
        <NavigationViewItem>Item 3</NavigationViewItem>
        <NavigationViewItem>Item 4</NavigationViewItem>
    </svelte:fragment>

    <svelte:fragment slot="footer">
        <NavigationViewItem>Settings</NavigationViewItem>
    </svelte:fragment>

    <TextBlock variant="title">Page Title</TextBlock>
</NavigationView>

@d2dyno1
Copy link

d2dyno1 commented Apr 26, 2022

How much customization will be available? Would it work for navigating pages as well?

@Tropix126
Copy link
Owner Author

How much customization will be available? Would it work for navigating pages as well?

I think that this will ideally just be for layout. I'll leave the navigation up to a routing library of the user's choice, since things start to get very complicated and unwieldy at that point.

@42willow 42willow mentioned this issue Jul 26, 2023
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants