Created
December 9, 2016 23:56
-
-
Save diegobersano/d93bf77fa6f7121512a39f3093890261 to your computer and use it in GitHub Desktop.
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 Xamarin.Forms; | |
namespace AppForms | |
{ | |
public class App : Application | |
{ | |
public App() | |
{ | |
MainPage = new MasterDetailPage | |
{ | |
Title = "Demo", | |
Detail = new ContentPage | |
{ | |
Content = new StackLayout | |
{ | |
VerticalOptions = LayoutOptions.Center, | |
Children = | |
{ | |
new Label | |
{ | |
HorizontalTextAlignment = TextAlignment.Center, | |
Text = "Hola mundo desde Xamarin Forms!", | |
FontSize = 30 | |
} | |
} | |
} | |
}, | |
Master = new ContentPage | |
{ | |
Title = "Demo App", | |
Content = new StackLayout | |
{ | |
BackgroundColor = Color.Yellow, | |
Children = | |
{ | |
new Label | |
{ | |
HorizontalTextAlignment= TextAlignment.Center, | |
Text = "Menú lateral", | |
FontSize = 26, | |
TextColor = Color.Black | |
} | |
} | |
} | |
} | |
}; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment