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 requires double-click to expand sub-menus #9423

Closed
jpageacsys opened this issue Mar 4, 2024 · 3 comments
Closed

NavigationView requires double-click to expand sub-menus #9423

jpageacsys opened this issue Mar 4, 2024 · 3 comments

Comments

@jpageacsys
Copy link

Describe the bug

After updating from 1.4.240211001 to 1.5.240227000 navigation view. This seems universal. I created a test app and switching versions causes this issue. Switching back fixes it. the WinUI 3 Gallery app has this issue as well and in the example text it states:
"In both Top and Left modes, clicking the arrows on NavigationViewItems will expand or collapse the subtree. Clicking or tapping elsewhere on the NavigationViewItem will collapse or expand the subtree."
If this is intended behavior, the documentation should reflect it, otherwise this looks like a bug.

Steps to reproduce the bug

Create a default WinUI 3 app.
Make a basic NavigationView control with sub menu items.

<Window
    x:Class="NavTest.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:NavTest"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <NavigationView>
        <NavigationView.MenuItems>
            <NavigationViewItem Content="Home" Tag="home" Icon="Home"/>
            <NavigationViewItem Content="Profile" Tag="profile" Icon="Contact">
                <NavigationViewItem.MenuItems>
                    <NavigationViewItem Content="Edit" Tag="edit" Icon="Edit"/>
                    <NavigationViewItem Content="View" Tag="view" Icon="View"/>
                </NavigationViewItem.MenuItems>
            </NavigationViewItem>
        </NavigationView.MenuItems>
        <Frame x:Name="ContentFrame"/>
    </NavigationView>
</Window>

Expanding requires a double click.

Expected behavior

I expect a click or tap on a parent NavigationViewItem to expand or collapse the submenu.

Screenshots

No response

NuGet package version

Windows App SDK 1.5.0: 1.5.240227000

Packaging type

Packaged (MSIX)

Windows version

Insider Build (xxxxx)

IDE

Visual Studio 2022

Additional context

My windows OS build is 22631.3235 Version 23H2 Windows 11 Pro

@ghost1372
Copy link
Contributor

@bpulliam bpulliam transferred this issue from microsoft/WindowsAppSDK Mar 11, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Mar 11, 2024
Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@duncanmacmichael
Copy link
Member

Fixed in 1.5.1, closing issue.

@microsoft-github-policy-service microsoft-github-policy-service bot removed the needs-triage Issue needs to be triaged by the area owners label Mar 13, 2024
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

3 participants