private Page CreateFourthPage(Navigator navigator) { var button = new Button() { Text = "Fourth Page", WidthResizePolicy = ResizePolicyType.FillToParent, HeightResizePolicy = ResizePolicyType.FillToParent, }; var page = new DialogPage(); page.Add(button); page.Appearing += (object sender, PageAppearingEventArgs e) => { global::System.Console.WriteLine("Third Page is appearing!"); }; page.Disappearing += (object sender, PageDisappearingEventArgs e) => { global::System.Console.WriteLine("Third Page is disappearing!"); }; navigator.Push(page); return(page); }