smeacham

secondPage

May 27th, 2016
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.51 KB | None | 0 0
  1. using Xamarin.Forms;
  2.  
  3. namespace NavigationDemoVS
  4. {
  5.     internal class secondPage : ContentPage
  6.     {
  7.         public secondPage()
  8.         {
  9.             Title = "Hierarchical Navigation";
  10.  
  11.             Label homeLabel = new Label
  12.             {
  13.                 Text = "Second Page",
  14.                 FontSize = 40
  15.             };
  16.  
  17.             var stackLayout = new StackLayout
  18.             {
  19.                 Children = { homeLabel }
  20.             };
  21.  
  22.             this.Content = stackLayout;
  23.         }
  24.  
  25.  
  26.     }
  27. }
Add Comment
Please, Sign In to add comment