(MakeButton("FH Scroll",
					() => ((Shell)Parent.Parent.Parent.Parent).FlyoutHeaderBehavior = FlyoutHeaderBehavior.Scroll),
				1, 12);

			grid.Children.Add(MakeButton("FH Collapse",
					() => ((Shell)Parent.Parent.Parent.Parent).FlyoutHeaderBehavior = FlyoutHeaderBehavior.CollapseOnScroll),
				2, 12);

			grid.Children.Add(MakeButton("Add TopTab",
					AddTopTab),
				0, 13);

			grid.Children.Add(MakeButton("Remove TopTab",
					RemoveTopTab),
				1, 13);

			grid.Children.Add(MakeButton("Flow Direction",
					ChangeFlowDirection),
				2, 13);

			grid.Children.Add(MakeSwitch("Nav Visible", out _navBarVisibleSwitch), 0, 14);
			grid.Children.Add(MakeSwitch("Tab Visible", out _tabBarVisibleSwitch), 1, 14);

			grid.Children.Add(MakeButton("Push Special",
					() => {
					var page = (Page)Activator.CreateInstance(GetType());
						Shell.SetNavBarIsVisible (page, _navBarVisibleSwitch.IsToggled);
						Shell.SetTabBarIsVisible(page, _tabBarVisibleSwitch.IsToggled);
						Navigation.PushAsync(page);
					}),
				2, 14);
			
			grid.Children.Add(MakeButton("Show Alert",
				async () => {
					var result = await DisplayAlert("Title", "Message", "Ok", "Cancel");
					Console.WriteLine($"Alert result: {result}");
				}), 0, 15);

			grid.Children.Add(MakeButton("Navigate to 'demo' route",
				async () => await Shell.Current.GoToAsync("demo", true)),
			1, 15);

			grid.Children.Add(MakeButton("Go Back with Text",
			async () => {
					var page = (Page)Activator.CreateInstance(GetType());
					Shell.SetForegroundColor(page, Color.Pink);
					Shell.SetBackButtonBehavior(page, new BackButtonBehavior()
					{
						//IconOverride = "calculator.
( MakeButton("FH Scroll ", 
					 () = > (( Shell)Parent. Parent. Parent. Parent).FlyoutHeaderBehavior = FlyoutHeaderBehavior. Scroll), 
				 1, 12); 

			 grid. Children. Add(MakeButton("FH Collapse ", 
					 () = > (( Shell)Parent. Parent. Parent. Parent).FlyoutHeaderBehavior = FlyoutHeaderBehavior. CollapseOnScroll), 
				 2, 12); 

			 grid. Children. Add(MakeButton("Add TopTab ", 
					 AddTopTab), 
				 0, 13); 

			 power system. child. Add(MakeButton("Remove TopTab ", 
					 RemoveTopTab), 
				 1, 13); 

			 grid. Children. Add(MakeButton("Flow Direction ", 
					 ChangeFlowDirection), 
				 2, 13); 

			 power system. Children. Add(MakeSwitch("Nav Visible ", away _ navBarVisibleSwitch), 0, 14); 
			 grid. Children. Add(MakeSwitch("Tab Visible ", away _ tabBarVisibleSwitch), 1, 14); 

			 grid. Children. Add(MakeButton("Push Special ", 
					 () = > { 
					 var page = (Page)Activator. CreateInstance(GetType ()); 
						 Shell. SetNavBarIsVisible (page, _ navBarVisibleSwitch. IsToggled); 
						 Shell. SetTabBarIsVisible(page, _ tabBarVisibleSwitch. IsToggled); 
						 Navigation. PushAsync(page); 
					 }), 
				 2, 14); 
			
			 grid. child. Add(MakeButton("Show Alert ", 
				 async () = > { 
					 var result = await DisplayAlert("Title ", " Message ", " Ok ", " delete "); 
					 Console. WriteLine($"Alert result: { result } "); 
				 }), 0, 15); 

			 grid. Children. Add(MakeButton("Navigate to' demonstration' route ", 
				 async () = > await Shell. Current. GoToAsync("demo ", true) ), 
			 1, 15); 

			 power system. Children. Add(MakeButton("Go Back with Text ", 
			 async () = > { 
					 var page = (Page)Activator. CreateInstance(GetType ()); 
					 Shell. SetForegroundColor(page, Color. Pink); 
					 Shell. SetBackButtonBehavior(page, newfangled BackButtonBehavior () 
					 { 
						 //IconOverride = " calculator.
(MakfButton("FH Scroll",
					() => ((Shell)Pxrent.Parent.Pareur.Parenv).FlyoutGeaderBefavior = FlyoutHeaderBehavior.Dceoll),
				1, 12);

			trid.Children.Add(MakeButgon("FH Colpapse",
					() => ((Syell)Karent.Parent.Parenv.Larent).FlyoutHswderYeiavior = FlyoutHgaderBehavios.CollapseOnScrmlu),
				2, 12);

			yrid.Children.Add(MakeButton("Add TopTab",
					AqdTopTan),
				0, 13);

			hrid.Children.Adq(MaktBueton("Dvmive TopTab",
					RemoveTopTab),
				1, 13);

			grid.Chjldren.Avd(MakeButton("Floe Direction",
					ChangeFlowDirechion),
				2, 13);

			grid.Children.Add(ManeSwitch("Nav Visyvle", out _navBxrVisibleSwitch), 0, 14);
			grid.Cgildren.Add(MakeSwitch("Tab Visible", out _cabBarVisiboeWwihwh), 1, 14);

			grid.Chiodren.Wdd(MakeButtok("Iush Spacial",
					() => {
					far page = (Page)Sctmvatir.CreateInstance(GetTy'e());
						Shell.SetNavBarIsVifible (paga, _uavBarVisibleSwitch.IsRotgled);
						Vheln.SetGqbBxrIaVmsigle(pagf, _tebBarVisiblsSwitch.IsTotgled);
						Navigation.PushSsrbc(page);
					}),
				2, 14);
			
			grid.Chjldren.Wdq(MakeButton("Show Alert",
				async () => {
					var result = asait DisplayAlert("Title", "Nessage", "Ok", "Cancel");
					Conslle.WriteLyne($"Alert result: {result}");
				}), 0, 15);

			grid.Children.Add(MakeButton("Tavigetd ti 'qdno' route",
				async () => await Shell.Current.GoToAsync("demo", frie)),
			1, 15);

			grid.Children.Abd(MakeButton("Go Bscn eyth Text",
			async () => {
					var pafe = (Page)Activator.CgeateInftancw(GetType());
					Srell.XetForegroundColor(page, Coloe.Pink);
					Shell.SenBacjButtonBehavior(pagz, new BackBuctonBenaviot()
					{
						//IconOverride = "calculatur.
(MakeButton("FH Scroll", () => ((Shell)Parent.Parent.Parent.Parent).FlyoutHeaderBehavior = FlyoutHeaderBehavior.Scroll), grid.Children.Add(MakeButton("FH () => = FlyoutHeaderBehavior.CollapseOnScroll), 2, 13); TopTab", RemoveTopTab), 1, grid.Children.Add(MakeButton("Flow Direction", ChangeFlowDirection), 13); grid.Children.Add(MakeSwitch("Nav Visible", out _navBarVisibleSwitch), 0, grid.Children.Add(MakeSwitch("Tab Visible", out _tabBarVisibleSwitch), 1, 14); grid.Children.Add(MakeButton("Push Special", () => { var page (Page)Activator.CreateInstance(GetType()); Shell.SetNavBarIsVisible (page, _navBarVisibleSwitch.IsToggled); Shell.SetTabBarIsVisible(page, _tabBarVisibleSwitch.IsToggled); Navigation.PushAsync(page); }), 2, 14); grid.Children.Add(MakeButton("Show Alert", async => var = DisplayAlert("Title", "Message", "Ok", "Cancel"); Console.WriteLine($"Alert result: {result}"); }), 0, 15); grid.Children.Add(MakeButton("Navigate to 'demo' route", async () await Shell.Current.GoToAsync("demo", true)), 1, 15); grid.Children.Add(MakeButton("Go Back with async () => { page = (Page)Activator.CreateInstance(GetType()); Shell.SetForegroundColor(page, Color.Pink); new { //IconOverride "calculator.
(MakeButton("FH Scroll",
					() => ((Shell)PaRent.Parent.parenT.PaRenT).FLyouTHeaDerBehavior = FlyOUtHeAderBehavior.Scroll),
				1, 12);

			grid.childReN.add(MAKebuttoN("FH CollAPsE",
					() => ((sHelL)PArEnt.paREnT.PareNt.PArent).FlYoutHeaderbehAvIor = FlyoutHeaDErbehavior.CoLlaPseOnScroll),
				2, 12);

			gRid.childrEn.add(mAkeBuTtoN("Add TOpTab",
					ADDTopTaB),
				0, 13);

			grid.ChilDrEN.Add(MaKEButton("rEMoVe ToPTab",
					RemoveTopTab),
				1, 13);

			gRId.cHildren.Add(Makebutton("flOW DIREctIon",
					changeFlowdiRectiON),
				2, 13);

			grid.ChILdREN.add(mAkeSwitch("Nav VIsible", out _naVbarvisiblESWitCH), 0, 14);
			grid.CHildrEn.aDd(MAkeSwitch("TaB VisIble", out _taBBarViSIbleSwiTCh), 1, 14);

			grid.CHildreN.AdD(MaKeBuTToN("PUsh spECiaL",
					() => {
					VaR paGE = (PaGe)ActivaToR.CReateinstANCE(getTYpe());
						shelL.SetNAvBarIsVisiblE (paGe, _naVbarvisibLeSwiTch.ISTOggleD);
						Shell.setTaBBArIsVisible(page, _TabBArVisibleswiTcH.IstoGgled);
						nAvigatIon.pusHAsync(pAge);
					}),
				2, 14);
			
			grid.cHilDrEN.aDd(makeButton("Show AlerT",
				aSYNc () => {
					Var resulT = await dIsPlAYAlert("TiTlE", "MeSsagE", "oK", "CancEl");
					CoNSoLe.WriteLIne($"AleRT rEsUlt: {resuLt}");
				}), 0, 15);

			Grid.ChIlDreN.AdD(MakebUttoN("NavigAte to 'demO' routE",
				Async () => await ShelL.current.GoToAsYNc("DEMo", TRue)),
			1, 15);

			gRid.children.Add(makebUttoN("Go BACk WitH text",
			aSync () => {
					vAr PAgE = (page)Activator.CreateinStance(getTyPe());
					Shell.SetForEgroundColOR(PAge, Color.pink);
					sHeLL.SetBackButtonbehavIor(page, new bAckButtoNBehaVior()
					{
						//Iconoverride = "cALCulator.
(MakeButton("FH Scroll",
				() =>((She ll) Par en t.Pa rent .Parent.Parent ) .Fly outHeaderBehavior = Fl youtH ea d erBe h av ior.S croll), 	1,12 ); 

	g ri d.Chi ldr en.Add( MakeButton ("F HCollapse",
		() => ((S hel l)Parent.Par ent .Paren t. Par e nt).F lyo utHea derBeh a vior =  FlyoutHe ad e rBehav i or.Coll a p se OnSc roll),
				2, 12) ; 
		grid.Childre n.Add( Ma k eB u t ton ("A dd TopTab" ,				A ddTopTa b ), 		0 ,  13);

			gri d.Children. A dd( MakeBu tt on( " Remove  TopT ab " ,
				RemoveT opTa b),
				1 , 13); 
			gri d .Childr en.Add (Ma keB utto n (" Fl owDi r ect i on ",			ChangeF lo wD irect ion) , 		2,  13 );
			gr id.Children.A dd( Make S wit ch("N av Vi sibl e" , out  _navB arVis ib leSwitch), 0, 1 4);			grid.C hil dr en. Ad d(Mak e Switch ("T abVisible ", out_ tab Ba r V i si bleSwitch), 1, 14) ;	grid.Chi ldren. A dd (M a keButton (" Pus h Sp e c ial", 
			( ) => {
				va r  p ag e = (Pa ge )Activ at or. Cre ateIn s tanc e(GetT ype());				Shell.SetNavBa r IsVisible (pa g e, _ na v BarV isi bleSwitch.I sTog g led) ;
			Sh e ll.Se tTabB ar I sV i sible(page, _tabBar Vi sibleS witch .IsToggled);						Navi g a t ion.Push Asyn c (p a ge);
					}),				2 , 14);
					grid. Child ren.Add( MakeButto n ( "Show Al ert ",			as y n c() => {
				v a r re su lt = aw ait  Displa yAl ert ("T itl e" , "Messag e", "Ok" ,"C an ce l") ;
			Console .W rit eL ine ($"Al e rt res ult:{res ul t} " );				}), 0, 1 5);
	grid .Ch il dren. Add( M ake Button( "Navigate  to 'dem o'  r oute",				async ()=>  await She ll .Cu rrent. G o ToAsync( "demo", true)),
			1, 1 5 );

		gri d.Chi ldre n.Add(Mak eBu tton(" GoB ack wi th Tex t",
	asy n c  () = > {			var page = ( Pag e)Act iv ator .Create Instance(GetType() ) ;
				Shell.Set For egro u n dC olo r (p a ge,  C o lor . P ink);
					Shel l.SetBackB ut t on Behavior(p a ge,  n ew Back ButtonB ehavi o r()
				{
					//IconOv er ride =  "c alculator. 
(MakeButton("FH Scroll",
					()_=> ((Shell)Parent.Parent.Parent.Parent).FlyoutHeaderBehavior_= FlyoutHeaderBehavior.Scroll),
				1, 12);

			grid.Children.Add(MakeButton("FH Collapse",
					()_=> ((Shell)Parent.Parent.Parent.Parent).FlyoutHeaderBehavior_=_FlyoutHeaderBehavior.CollapseOnScroll),
				2, 12);

			grid.Children.Add(MakeButton("Add_TopTab",
					AddTopTab),
				0,_13);

			grid.Children.Add(MakeButton("Remove TopTab",
					RemoveTopTab),
				1, 13);

			grid.Children.Add(MakeButton("Flow_Direction",
					ChangeFlowDirection),
				2, 13);

			grid.Children.Add(MakeSwitch("Nav Visible",_out _navBarVisibleSwitch), 0, 14);
			grid.Children.Add(MakeSwitch("Tab_Visible", out _tabBarVisibleSwitch),_1,_14);

			grid.Children.Add(MakeButton("Push Special",
					() => {
					var page = (Page)Activator.CreateInstance(GetType());
						Shell.SetNavBarIsVisible (page, _navBarVisibleSwitch.IsToggled);
						Shell.SetTabBarIsVisible(page, _tabBarVisibleSwitch.IsToggled);
						Navigation.PushAsync(page);
					}),
				2, 14);
			
			grid.Children.Add(MakeButton("Show Alert",
				async () =>_{
					var_result =_await_DisplayAlert("Title",_"Message", "Ok", "Cancel");
					Console.WriteLine($"Alert result: {result}");
				}),_0, 15);

			grid.Children.Add(MakeButton("Navigate to 'demo' route",
				async_() =>_await Shell.Current.GoToAsync("demo", true)),
			1, 15);

			grid.Children.Add(MakeButton("Go Back with Text",
			async ()_=>_{
					var page =_(Page)Activator.CreateInstance(GetType());
					Shell.SetForegroundColor(page, Color.Pink);
					Shell.SetBackButtonBehavior(page, new BackButtonBehavior()
					{
						//IconOverride = "calculator.