Create a gist now

Instantly share code, notes, and snippets.

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