Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Xamarin.Forms;
- namespace NavigationDemoVS
- {
- internal class HomePage : ContentPage
- {
- Button homeButton;
- public HomePage()
- {
- Title = "Hierarchical Navigation";
- Label homeLabel = new Label
- {
- Text = "Home Page",
- FontSize = 40
- };
- homeButton = new Button
- {
- Text = "Go to Second Page"
- };
- homeButton.Clicked += async (sender, args) =>
- await Navigation.PushAsync(new secondPage());
- StackLayout stackLayout = new StackLayout
- {
- Children = { homeLabel, homeButton }
- };
- this.Content = stackLayout;
- }
- }
- }
Add Comment
Please, Sign In to add comment