-
Notifications
You must be signed in to change notification settings - Fork 803
Open
Labels
bugSomething isn't workingSomething isn't workingneeds-triageIssue needs to be triaged by the area ownersIssue needs to be triaged by the area owners
Description
Describe the bug
Application crashes when using NavigationView that contains only one NavigationViewItem.
Steps to reproduce the bug
-
Create new c++ desktop winui3 project.
-
Edit .vcxproj file to build unpackaged app.
<AppxPackage>false</AppxPackage>
<WindowsPackageType>None</WindowsPackageType>
- Edit MainWindow.xaml
<?xml version="1.0" encoding="utf-8"?>
<Window
x:Class="navviewtest.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:navviewtest"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Title="navviewtest">
<NavigationView>
<NavigationView.MenuItems>
<NavigationViewItem Content="Item1" />
<!--
App doesn't crash when there are two items.
<NavigationViewItem Content="Item2" />
-->
</NavigationView.MenuItems>
</NavigationView>
</Window>- Edit MainWindow.cpp to disable template code.
void MainWindow::myButton_Click(IInspectable const&, RoutedEventArgs const&)
{
//myButton().Content(box_value(L"Clicked"));
}- Build and Run. Then make window smaller with mouse.
Expected behavior
No response
Screenshots
NuGet package version
WinUI 3 - Windows App SDK 1.6.3: 1.6.241114003
Windows version
Windows 11 (24H2): Build 26100
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingneeds-triageIssue needs to be triaged by the area ownersIssue needs to be triaged by the area owners
