TemplateStudio icon indicating copy to clipboard operation
TemplateStudio copied to clipboard

The Back button does not work with MasterDetailView on first navigation

Open Kapranov98 opened this issue 5 years ago • 10 comments

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

Kapranov98 avatar Nov 03 '18 16:11 Kapranov98

The problem manifests itself only if the page with MasterDetailView is the main one. If you remove BackButtonBehavior="Automatic" from <controls: MasterDetailsView>, 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 avatar Nov 03 '18 19:11 Kapranov98

@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?

sibille avatar Nov 03 '18 23:11 sibille

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

sibille avatar Nov 03 '18 23:11 sibille

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

Kapranov98 avatar Nov 04 '18 13:11 Kapranov98

@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.

crutkas avatar Nov 04 '18 13:11 crutkas

@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.

sibille avatar Nov 04 '18 17:11 sibille

Moving to 3.0 to revisit when fixed in toolkit

sibille avatar Nov 13 '18 16:11 sibille

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

crutkas avatar Jan 15 '19 09:01 crutkas

I want to know how I can implement BackRequest (BackButton in the title bar in App.xaml.cs

Javier118 avatar May 26 '22 17:05 Javier118

I want to know how I can implement BackRequest (BackButton in the title bar in App.xaml.cs

I don't see how this is related to this issue.

mrlacey avatar May 26 '22 18:05 mrlacey