File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323 x : Name =" AppTitleBar"
2424 x : Uid =" AppTitleBar"
2525 BackRequested =" TitleBar_BackRequested"
26- IsBackButtonVisible =" {x:Bind RootFrame .CanGoBack, Mode=OneWay}" >
26+ IsBackButtonVisible =" {x:Bind NavFrame .CanGoBack, Mode=OneWay}" >
2727 <TitleBar .IconSource>
2828 <ImageIconSource ImageSource =" Assets/AppIcon.ico" />
2929 </TitleBar .IconSource>
3434 MainPage.xaml rather than here so you can use Page features such as
3535 navigation events and the Loaded lifecycle.
3636 -->
37- <Frame x : Name =" RootFrame " Grid.Row=" 1" />
37+ <Frame x : Name =" NavFrame " Grid.Row=" 1" />
3838 </Grid >
3939</windowex : WindowEx >
Original file line number Diff line number Diff line change @@ -42,11 +42,11 @@ public MainWindow()
4242 AppWindow . SetIcon ( "Assets/AppIcon.ico" ) ;
4343
4444 // Navigate the root frame to the main page on startup.
45- RootFrame . Navigate ( typeof ( MainPage ) ) ;
45+ NavFrame . Navigate ( typeof ( MainPage ) ) ;
4646 }
4747
4848 private void TitleBar_BackRequested ( TitleBar sender , object args )
4949 {
50- RootFrame . GoBack ( ) ;
50+ NavFrame . GoBack ( ) ;
5151 }
5252}
You can’t perform that action at this time.
0 commit comments