@@ -16,7 +16,7 @@ public Issue31961()
1616 var mainPage = new ShellContent
1717 {
1818 Title = "Main" ,
19- Content = new MainPage1 ( ) ,
19+ Content = new Issue31961MainPage ( ) ,
2020 Route = "MainPage"
2121 } ;
2222
@@ -25,10 +25,10 @@ public Issue31961()
2525 Items . Add ( tabBar ) ;
2626
2727 // Register routes for navigation
28- Routing . RegisterRoute ( "Page1 " , typeof ( Page1 ) ) ;
29- Routing . RegisterRoute ( "Page2 " , typeof ( Page2 ) ) ;
30- Routing . RegisterRoute ( "Page3 " , typeof ( Page3 ) ) ;
31- Routing . RegisterRoute ( "ModalPage " , typeof ( ModalPage ) ) ;
28+ Routing . RegisterRoute ( "Issue31961FirstPage " , typeof ( Issue31961FirstPage ) ) ;
29+ Routing . RegisterRoute ( "Issue31961SecondPage " , typeof ( Issue31961SecondPage ) ) ;
30+ Routing . RegisterRoute ( "Issue31961ThirdPage " , typeof ( Issue31961ThirdPage ) ) ;
31+ Routing . RegisterRoute ( "Issue31961ModalPage " , typeof ( Issue31961ModalPage ) ) ;
3232 }
3333
3434 protected override void OnNavigated ( ShellNavigatedEventArgs args )
@@ -42,11 +42,11 @@ protected override void OnNavigated(ShellNavigatedEventArgs args)
4242 }
4343}
4444
45- public partial class MainPage1 : ContentPage
45+ public partial class Issue31961MainPage : ContentPage
4646{
4747 public Command NavigateToPage1Command { get ; }
4848
49- public MainPage1 ( )
49+ public Issue31961MainPage ( )
5050 {
5151 // Initialize command
5252 NavigateToPage1Command = new Command ( async ( ) => await NavigateToPage1Async ( ) ) ;
@@ -66,18 +66,18 @@ public MainPage1()
6666
6767 async Task NavigateToPage1Async ( )
6868 {
69- await Shell . Current . GoToAsync ( "Page1 " ) ;
69+ await Shell . Current . GoToAsync ( "Issue31961FirstPage " ) ;
7070 }
7171}
7272
73- public class Page1 : ContentPage , INavigationAware
73+ public class Issue31961FirstPage : ContentPage , INavigationAware
7474{
7575 bool _wasModalShown = false ;
7676
7777 public Command OpenModalCommand { get ; }
7878 public Command NavigateToPage2Command { get ; }
7979
80- public Page1 ( )
80+ public Issue31961FirstPage ( )
8181 {
8282 Title = "Page 1" ;
8383 BindingContext = this ; // Set binding context to enable INavigationAware
@@ -100,12 +100,12 @@ public Page1()
100100 async Task OpenModalAsync ( )
101101 {
102102 _wasModalShown = true ;
103- await Shell . Current . GoToAsync ( "ModalPage " ) ;
103+ await Shell . Current . GoToAsync ( "Issue31961ModalPage " ) ;
104104 }
105105
106106 async Task NavigateToPage2Async ( )
107107 {
108- await Shell . Current . GoToAsync ( "Page2 " ) ;
108+ await Shell . Current . GoToAsync ( "Issue31961SecondPage " ) ;
109109 }
110110
111111 public void OnShellNavigated ( ShellNavigatedEventArgs args )
@@ -120,11 +120,11 @@ public void OnShellNavigated(ShellNavigatedEventArgs args)
120120 }
121121}
122122
123- public class ModalPage : ContentPage
123+ public class Issue31961ModalPage : ContentPage
124124{
125125 public Command CloseModalCommand { get ; }
126126
127- public ModalPage ( )
127+ public Issue31961ModalPage ( )
128128 {
129129 Title = "Modal Page" ;
130130 BackgroundColor = Colors . LightGray ;
@@ -148,11 +148,11 @@ async Task CloseModalAsync()
148148 }
149149}
150150
151- public class Page2 : ContentPage
151+ public class Issue31961SecondPage : ContentPage
152152{
153153 public Command NavigateToPage3Command { get ; }
154154
155- public Page2 ( )
155+ public Issue31961SecondPage ( )
156156 {
157157 Title = "Page 2" ;
158158
@@ -171,13 +171,13 @@ public Page2()
171171
172172 async Task NavigateToPage3Async ( )
173173 {
174- await Shell . Current . GoToAsync ( "Page3 " ) ;
174+ await Shell . Current . GoToAsync ( "Issue31961ThirdPage " ) ;
175175 }
176176}
177177
178- public class Page3 : ContentPage
178+ public class Issue31961ThirdPage : ContentPage
179179{
180- public Page3 ( )
180+ public Issue31961ThirdPage ( )
181181 {
182182 Title = "Page 3" ;
183183
0 commit comments