Create a gist now

Instantly share code, notes, and snippets.

var stack = new StackLayout
{
Children =
{
new BoxView
{
WidthRequest = 100,
HeightRequest = 50,
BackgroundColor = Color.FromHex("cccccc")
},
new BoxView
{
WidthRequest = 100,
HeightRequest = 50,
BackgroundColor = Color.FromHex("ffaaaa"),
HorizontalOptions = LayoutOptions.Start
},
new BoxView
{
WidthRequest = 100,
HeightRequest = 50,
BackgroundColor = Color.FromHex("aaffaa"),
HorizontalOptions = LayoutOptions.Center
},
new BoxView
{
WidthRequest = 100,
HeightRequest = 50,
BackgroundColor = Color.FromHex("aaaaff"),
HorizontalOptions = LayoutOptions.End
},
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment