-
Notifications
You must be signed in to change notification settings - Fork 460
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
WinUI:NavigationView does not navigate in Release Mode #2774
Comments
@Pinox can you share the 'recipe' you used to aid us in debugging? |
@crutkas Sure, Navigation Menu , Mvvmlight and then I had a couple of random pages as in screenshot above. |
@Pinox, we're having a look at this. While we are working on a fix you can workaround by using the event instead.
and add
In the ShellPage.xaml.cs add:
|
@sibille Thanks. |
Will this need a hot fix? |
Created an issue to investigate this at microsoft/XamlBehaviors#142. I think we should prepare a hotfix with the workaround while investigating the root cause. |
Hotfix added on a pull request |
Hotfix published |
I see that you've moved away from the XAML Behaviors with this hotfix, but in case you still want to use it, I have a solution for you! On the "Default.rd.xml" template files, add the following directives: <Type Name="Windows.Foundation.TypedEventHandler{Microsoft.UI.Xaml.Controls.NavigationView,Microsoft.UI.Xaml.Controls.NavigationViewItemInvokedEventArgs}" MarshalObject="Public" />
<Type Name="Microsoft.UI.Xaml.Controls.NavigationView">
<Event Name="ItemInvoked" Dynamic="Required"/>
</Type> This will be enough to ensure that |
Oooo. Thanks Pedro. Sibille, thoughts? |
I think we should re-include the behaviour and the directives in the Default.rd.xml file, adding a comment that explains what they are needed for. |
Verified in dev-nightly: |
Does somebody know where to mention this issue that it gets fixed by default (also for people who don't use WTS)? Maybe at the Microsoft.Xaml.Interactivity team or the microsoft-ui-xaml repo or the UWP Team? |
@PavLL Yes, a fix for this at a UWP level should be reported at the WinUI repository. (Maybe reopen your issue there as a workaround isn't as good as a fix.) |
Hi , something I noticed , the Hamburger menu items does not change the page views when app is build to UWP Release Mode.
Using latest stable VS 15.9.2
The text was updated successfully, but these errors were encountered: