Ooui-tws-port/Samples/Navigation/NavigationThirdPage.xaml.cs

32 lines
691 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace Samples.Navigation
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class NavigationThirdPage : ContentPage
{
public NavigationThirdPage ()
{
InitializeComponent ();
}
private void BackButton_Clicked(object sender, EventArgs e)
{
(this.Parent as NavigationPage).PopAsync(false);
}
private void RootButton_Clicked(object sender, EventArgs e)
{
(this.Parent as NavigationPage).PopToRootAsync(false);
}
}
}