Windowstemplatestudio: The Back button does not work with MasterDetailView on first navigation

Created on 3 Nov 2018  路  8Comments  路  Source: microsoft/WindowsTemplateStudio

Description:

Hello! I downloaded the Nightly version of Windows Template Studio and created a project with NavigationView and MasterDetailView (Code Behind). But after compiling I found that in compact mode, the NavView's Back button does not work with MasterDetailView, which makes it impossible to return from DetailPage to ListView. How can I fix this problem?

Source: App5.zip

System

  • VS Version: 15.8.8
  • WTS Wizard Version: 0.19.18307.1
  • Windows Build: 17763/107

default

bug external-issue

All 8 comments

The problem manifests itself only if the page with MasterDetailView is the main one. If you remove BackButtonBehavior="Automatic" from , you can see the Back button in the TitleBar, which will work as it should. And the Back button in NavView does not work.
default

@kapranov98, navigation views back button should allow you to go back. The automatic mode should detect there is a navview and allow going back with the navview back
button. Could you share your project to repro?

Just saw your project, I'll have a look at it

I think this is a bug in the Windows Community Toolkit...

@kapranov98, we are looking into it. Good catch and thanks for the repo. We will loop toolkit in ASAP if that is the issue. There are great people helping out over there.

@Kapranov98, had a look into this and it seems to happen only if MasterDetail is the first page and there's no back stack on the frame. Let's see if people from WCT can fix that on the control side or if we have to wire up sth different.

Moving to 3.0 to revisit when fixed in toolkit

Pushing to 3.1 / Hotfix for 3.0, should be fixed with Toolkit 5.1 which is release released Feb 13th.

Was this page helpful?
0 / 5 - 0 ratings