how to open new form on button click in c# xamarin

C#
private void button1Click(object sender, EventArgs e)
{            
     App.Current.MainPage = new settings();
}
Source

Also in C#: