Skip to content

Instantly share code, notes, and snippets.

@diegobersano
Created December 9, 2016 23:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diegobersano/d93bf77fa6f7121512a39f3093890261 to your computer and use it in GitHub Desktop.
Save diegobersano/d93bf77fa6f7121512a39f3093890261 to your computer and use it in GitHub Desktop.
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