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 The target object with name 'ExpandCollapseChevronIcon' could not be resolved for a Setter. #8380

Closed
CesGan opened this issue Apr 10, 2023 · 0 comments
Labels
area-NavigationView NavView control bug Something isn't working closed-Fixed Described behavior has been fixed. team-Controls Issue for the Controls team
Milestone

Comments

@CesGan
Copy link

CesGan commented Apr 10, 2023

Describe the bug

When setting the pane of a NavigationView to Top and shrink the width of a window so that the "..." button shows, then click on it, gives the following error:
"The target object with name 'ExpandCollapseChevronIcon' could not be resolved for a Setter."

Steps to reproduce the bug

  1. Create a new Windows App SDK app.
  2. On the MainWindow page put the following:
<Window
    x:Class="NavigationViewError.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:local="using:NavigationViewError"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <NavigationView PaneDisplayMode="Top">
        <NavigationView.MenuItems>
            <NavigationViewItem Content="Page1" />
            <NavigationViewItem Content="Page2">
                <NavigationViewItem.MenuItems>
                    <NavigationViewItem Content="Page3" />
                    <NavigationViewItem Content="Page4" />
                </NavigationViewItem.MenuItems>
            </NavigationViewItem>
        </NavigationView.MenuItems>
        <Frame />
    </NavigationView>
</Window>
  1. Run the app.
  2. Shrink the width until the "..." on the navigationView shows up.
  3. Click on it.

Expected behavior

No response

Screenshots

image

image

NuGet package version

WinUI 3 - Windows App SDK 1.2.5: 1.2.230313.1

Windows version

Windows 11 (22H2): Build 22621

Additional context

No response

@CesGan CesGan added the bug Something isn't working label Apr 10, 2023
@bpulliam bpulliam added area-NavigationView NavView control team-Controls Issue for the Controls team labels Aug 9, 2023
@llongley llongley added the closed-Fixed Described behavior has been fixed. label Jan 13, 2024
@bpulliam bpulliam added this to the WinAppSDK 1.5 milestone Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-NavigationView NavView control bug Something isn't working closed-Fixed Described behavior has been fixed. team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

3 participants