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

Adding a TextBox to a page in a NavigationView crashes a WinAppSdk 1.2 app #7911

Closed
1 of 2 tasks
ackh opened this issue Nov 11, 2022 · 2 comments
Closed
1 of 2 tasks
Labels
area-NavigationView NavView control bug Something isn't working Regression team-Controls Issue for the Controls team

Comments

@ackh
Copy link

ackh commented Nov 11, 2022

Describe the bug

Adding a TextBox control to a page that is programmatically added via NavigationView crashes the app. This used to work in WinAppSdk 1.1.5 but now fails in WinAppSdk 1.2.221109.1.

Steps to reproduce the bug

Prerequisites:

  • Windows App SDK 1.2 is installed
  1. Download the attached zip file and extract its content
  2. Open "WinAppSdk_Issue_1.2.sln" in Visual Studio 17.4
  3. Build and run the solution
  4. Switch to the "Page2" tab of the NavigationView. The app crashes with an access violation exception in the LoadComponent function of file Microsoft.UI.Xaml.h

Expected behavior

TextBox elements can be used in XAML without crashing the app.

Screenshots

No response

NuGet package version

No response

Windows app type

  • UWP
  • Win32

Device form factor

Desktop

Windows version

Windows 10 (21H2): Build 19044

Additional context

At the time of this bug submission, the "Nuget package version" drop down does not list the WinAppSdk 1.2 package. The NuGet packaged used is as follows:

Microsoft.WindowsAppSDK.1.2.221109.1

@ackh ackh added the bug Something isn't working label Nov 11, 2022
@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Nov 11, 2022
@gabbybilka gabbybilka added area-NavigationView NavView control team-Controls Issue for the Controls team Regression needs-review 👀 and removed needs-triage Issue needs to be triaged by the area owners labels Nov 11, 2022
@MikeHillberg
Copy link
Contributor

Thanks for opening this. Until it's serviced, there's a workaround in this comment.

@bpulliam bpulliam added fixed-internally This bug has been fixed, and the fix will be shipped in the next version of WinUI 3. and removed needs-review 👀 labels Nov 16, 2022
@gabbybilka
Copy link
Member

🎉Microsoft.WindowsAppSDK.1.2.221116.1 has been released which fixes this issue.

Handy links:

@bpulliam bpulliam added this to the WinUI 3 in WinAppSDK 1.2 milestone Feb 29, 2024
@bpulliam bpulliam removed the fixed-internally This bug has been fixed, and the fix will be shipped in the next version of WinUI 3. label Feb 29, 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 Regression team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

4 participants