NavigationView inside ContentDialog causes crash in WinUI3 Desktop #2713
Labels
appModel-win32
Exclusive to WinUI 3 Win32 Desktop apps
area-Dialogs
area-NavigationView
NavView control
product-winui3
WinUI 3 issues
team-Controls
Issue for the Controls team
Describe the bug
The NavigationView inside the ContentDialog causes the application to crash.
We have the NavigationView inside the ContentDialog working in UWP.
When moved over to WinUI3 Desktop, the application crashes before the NavigationView can load.
Steps to reproduce the bug
Expected behavior
After clicking on the "Click me" button, we expect to see the NavigationView inside the ContentDialog. See Screenshot#2 below for expected behavior.
We expect to see the same behavior we saw in UWP. Build and run the DialogWithNavViewUWP solution inside the DialogWithNavViewUWP folder to see expected behavior.
Screenshots
Screenshot#1 - Current Behavior (Error Message)
Screenshot#2 - Expected Behavior
Version Info
NuGet package version:
[Microsoft.VCRTForwarders.140 1.0.6]
[Microsoft.WinUI 3.0.0-preview1.200515.3]
Targeting:
Target: Universal Windows
Target version: Windows 10, version 1809 (10.0; Build 17763)
Min version: Windows 10, version 1809 (10.0; Build 17763)
Additional context
If the NavigationView is removed or commented out, the application does not crash and the ContentDialog is displayed (without NavigationView).
To demonstrate this, comment out line numbers 16 - 22 in DialogWithNavView.xaml.
The text was updated successfully, but these errors were encountered: