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

DrawerNavigationViewStyle would crash on windows #1057

Open
Xiaoy312 opened this issue Feb 29, 2024 · 0 comments
Open

DrawerNavigationViewStyle would crash on windows #1057

Xiaoy312 opened this issue Feb 29, 2024 · 0 comments
Labels
control/drawer kind/bug Something isn't working

Comments

@Xiaoy312
Copy link
Contributor

Current behavior

on windows, using a DrawerNavigationViewStyle nav-view crash the app:

System.Runtime.InteropServices.COMException (0x80004005)
   at WinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|39_0(Int32 hr)
   at ABI.Microsoft.UI.Xaml.IFrameworkElementOverridesMethods.MeasureOverride(IObjectReference _obj, Size availableSize)
   at Microsoft.UI.Xaml.FrameworkElement.MeasureOverride(Size availableSize)
   at Microsoft.UI.Xaml.FrameworkElement.Microsoft.UI.Xaml.IFrameworkElementOverrides.MeasureOverride(Size availableSize)
   at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_MeasureOverride_0(IntPtr thisPtr, Size availableSize, Size* result)
--- End of stack trace from previous location ---
   at WinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|39_0(Int32 hr)
   at ABI.Microsoft.UI.Xaml.IFrameworkElementOverridesMethods.MeasureOverride(IObjectReference _obj, Size availableSize)
   at Microsoft.UI.Xaml.FrameworkElement.MeasureOverride(Size availableSize)
   at Microsoft.UI.Xaml.FrameworkElement.Microsoft.UI.Xaml.IFrameworkElementOverrides.MeasureOverride(Size availableSize)
   at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_MeasureOverride_0(IntPtr thisPtr, Size availableSize, Size* result)

Expected behavior

^ should not happen

How to reproduce it (as minimally and precisely as possible)

<muxc:NavigationView Style="{StaticResource DrawerNavigationViewStyle}">

Nuget Package: [email protected]~ish
Affected platform(s): Windows
IDE: Visual Studio 2022

Anything else we need to know?

this is with the #1056 fix

@Xiaoy312 Xiaoy312 added kind/bug Something isn't working control/drawer labels Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
control/drawer kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant