Forum Xamarin.Forms

How to write Layout.Children.Add(new BoxView, new Rectangle) in XAML

red49red49 MYMember
edited October 2016 in Xamarin.Forms

How do I translate this:

absoluteLayout.Children.Add(new BoxView { Color = Color.Accent },
                                    new Rectangle(0, 10, 200, 5));

into XAML?

    <BoxView Color="Aqua">

Edit: Nvm I'm an idiot, totally missed that LayoutBounds...

Sign In or Register to comment.