@@ -15,13 +15,13 @@ public Issue18193()
1515 tabBar . Items . Add ( CreateShellContent ( "Page 6" , typeof ( Issue18193Page6 ) , nameof ( Issue18193Page6 ) ) ) ;
1616 //Added the TabBar Items ,this will show overflow menu in Windows
1717 //to access the extra pages, keeping the interface clean and easy to navigate.
18- tabBar . Items . Add ( CreateShellContent ( "Page 7" , typeof ( Issue18193Page7 ) , nameof ( Issue18193Page7 ) ) ) ;
19- tabBar . Items . Add ( CreateShellContent ( "Page 8" , typeof ( Issue18193Page8 ) , nameof ( Issue18193Page8 ) ) ) ;
20- tabBar . Items . Add ( CreateShellContent ( "Page 9" , typeof ( Issue18193Page9 ) , nameof ( Issue18193Page9 ) ) ) ;
21- tabBar . Items . Add ( CreateShellContent ( "Page 10" , typeof ( Issue18193Page10 ) , nameof ( Issue18193Page10 ) ) ) ;
22- tabBar . Items . Add ( CreateShellContent ( "Page 11" , typeof ( Issue18193Page11 ) , nameof ( Issue18193Page11 ) ) ) ;
23- tabBar . Items . Add ( CreateShellContent ( "Page 12" , typeof ( Issue18193Page12 ) , nameof ( Issue18193Page12 ) ) ) ;
24- tabBar . Items . Add ( CreateShellContent ( "Page 13" , typeof ( Issue18193Page13 ) , nameof ( Issue18193Page13 ) ) ) ;
18+ tabBar . Items . Add ( CreateShellContent ( "Page 7" , typeof ( Issue18193Page2 ) , nameof ( Issue18193Page7 ) ) ) ;
19+ tabBar . Items . Add ( CreateShellContent ( "Page 8" , typeof ( Issue18193Page3 ) , nameof ( Issue18193Page8 ) ) ) ;
20+ tabBar . Items . Add ( CreateShellContent ( "Page 9" , typeof ( Issue18193Page4 ) , nameof ( Issue18193Page9 ) ) ) ;
21+ tabBar . Items . Add ( CreateShellContent ( "Page 10" , typeof ( Issue18193Page5 ) , nameof ( Issue18193Page10 ) ) ) ;
22+ tabBar . Items . Add ( CreateShellContent ( "Page 11" , typeof ( Issue18193Page6 ) , nameof ( Issue18193Page11 ) ) ) ;
23+ tabBar . Items . Add ( CreateShellContent ( "Page 12" , typeof ( Issue18193Page2 ) , nameof ( Issue18193Page12 ) ) ) ;
24+ tabBar . Items . Add ( CreateShellContent ( "Page 13" , typeof ( Issue18193Page3 ) , nameof ( Issue18193Page13 ) ) ) ;
2525 Items . Add ( tabBar ) ;
2626 Routing . RegisterRoute ( nameof ( Issue18193DetailPage ) , typeof ( Issue18193DetailPage ) ) ;
2727 }
@@ -38,9 +38,9 @@ class Issue18193MainPage : ContentPage
3838 {
3939 public Issue18193MainPage ( )
4040 {
41- Button sixthPageButton = new Button ( ) { AutomationId = "NavigationToPageSixthButton " , Text = "Navigate to page 6" } ;
42- sixthPageButton . Clicked += ( s , e ) => Issue18193 . Current . GoToAsync ( "//" + nameof ( Issue18193Page6 ) ) ;
43- Content = sixthPageButton ;
41+ var button = new Button ( ) { AutomationId = "NavigationToPage6Button " , Text = "Navigate to page 6" } ;
42+ button . Clicked += ( s , e ) => Issue18193 . Current . GoToAsync ( "//" + nameof ( Issue18193Page6 ) ) ;
43+ Content = button ;
4444 }
4545 }
4646
@@ -49,9 +49,9 @@ class Issue18193DetailPage : ContentPage
4949 public Issue18193DetailPage ( )
5050 {
5151 Title = "Detail Page" ;
52- Button backButton = new Button ( ) { AutomationId = "NavigateBackButton" , Text = "Navigate back" } ;
53- backButton . Clicked += ( s , e ) => Issue18193 . Current . GoToAsync ( ".." ) ;
54- Content = backButton ;
52+ var button = new Button ( ) { AutomationId = "NavigateBackButton" , Text = "Navigate back" } ;
53+ button . Clicked += ( s , e ) => Issue18193 . Current . GoToAsync ( ".." ) ;
54+ Content = button ;
5555 }
5656 }
5757
@@ -63,7 +63,7 @@ public Issue18193Page2()
6363 {
6464 Text = "Navigate to page 5" ,
6565 Command = new Command ( async ( ) => await Issue18193 . Current . GoToAsync ( "//" + nameof ( Issue18193Page5 ) ) ) ,
66- AutomationId = "NavigateToPageFiveButton "
66+ AutomationId = "NavigateToPage5Button "
6767 } ;
6868 }
6969 }
@@ -91,17 +91,17 @@ public class Issue18193Page6 : ContentPage
9191 {
9292 public Issue18193Page6 ( )
9393 {
94- Button detailPageButton = new Button ( ) { AutomationId = "NavigateToDetailButton" , Text = "Navigate to detail page" } ;
95- detailPageButton . Clicked += ( s , e ) => Issue18193 . Current . GoToAsync ( nameof ( Issue18193DetailPage ) ) ;
94+ var button = new Button ( ) { AutomationId = "NavigateToDetailButton" , Text = "Navigate to detail page" } ;
95+ button . Clicked += ( s , e ) => Issue18193 . Current . GoToAsync ( nameof ( Issue18193DetailPage ) ) ;
9696
97- Button secondPageButton = new Button ( ) { AutomationId = "NavigateToPageTwoButton " , Text = "Navigate to Page 2" } ;
98- secondPageButton . Clicked += ( s , e ) => Issue18193 . Current . GoToAsync ( "//" + nameof ( Issue18193Page2 ) ) ;
97+ var button2 = new Button ( ) { AutomationId = "NavigateToPage2Button " , Text = "Navigate to Page 2" } ;
98+ button2 . Clicked += ( s , e ) => Issue18193 . Current . GoToAsync ( "//" + nameof ( Issue18193Page2 ) ) ;
9999 Content = new StackLayout
100100 {
101101 Children =
102102 {
103- detailPageButton ,
104- secondPageButton
103+ button ,
104+ button2
105105 }
106106 } ;
107107 }
0 commit comments