Permalink
Cannot retrieve contributors at this time
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?
Local/Local/TestPage.cs
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
66 lines (50 sloc)
1.76 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()); | |
} | |
} | |
} |