Skip to content

Instantly share code, notes, and snippets.

@ytabuchi
Created January 4, 2017 08:05
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 ytabuchi/9a180094ef4dff319ba2dc1d80bb0703 to your computer and use it in GitHub Desktop.
Save ytabuchi/9a180094ef4dff319ba2dc1d80bb0703 to your computer and use it in GitHub Desktop.
var stack = new StackLayout
{
Children =
{
new BoxView
{
HeightRequest = 100,
BackgroundColor = Color.FromHex("cccccc")
},
new BoxView
{
HeightRequest = 50,
BackgroundColor = Color.FromHex("ffaaaa"),
VerticalOptions = LayoutOptions.EndAndExpand
},
new BoxView
{
HeightRequest = 50,
BackgroundColor = Color.FromHex("aaffaa"),
VerticalOptions = LayoutOptions.CenterAndExpand
},
new BoxView
{
HeightRequest = 50,
BackgroundColor = Color.FromHex("aaaaff"),
VerticalOptions = LayoutOptions.StartAndExpand
},
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment