Skip to content
Permalink
add6e4d428
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
66 lines (50 sloc) 1.76 KB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xamarin.Forms;
namespace Local
{
public class TestPage : ContentPage
{
private Button _button;
public TestPage()
{
this.Title = "Create an Agenda";
StackLayout stackLayout = new StackLayout();
_button = new Button();
_button.Text = "Create a new Agenda";
_button.Clicked += _button_Clicked;
stackLayout.Children.Add(_button);
Content = stackLayout;
_button = new Button();
_button.Text = "Take a picture of your handwritten agenda";
_button.Clicked += _button_Jotter_Clicked;
stackLayout.Children.Add(_button);
_button = new Button();
_button.Text = "About the Creator";
_button.Clicked += _button_My_Clicked;
stackLayout.Children.Add(_button);
_button = new Button();
_button.Text = "Image View Homepage";
_button.Clicked += _button_Image_Clicked;
stackLayout.Children.Add(_button);
}
private async void _button_Image_Clicked(object sender, EventArgs e)
{
await Navigation.PushAsync(new ImageView());
}
private async void _button_My_Clicked(object sender, EventArgs e)
{
await Navigation.PushAsync(new AboutTheAuthor());
}
private async void _button_Jotter_Clicked(object sender, EventArgs e)
{
await Navigation.PushAsync(new Page3());
}
private async void _button_Clicked(object sender, EventArgs e)
{
await Navigation.PushAsync(new MainPage());
}
}
}