Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

CenterAndExpand does not extend the background color of a StackLayout

$
0
0

I've been trying to center the contents of my StackLayout within my navigation page, but whenever I use the VerticalOptions = LayoutOptions.CenterAndExpand, the default background color manages to poke through. Since iOS's background is white by default, it isn't an issue (for now) but it looks horrendous on Android and WP. I am aware that I can change the default style of the devices, but would like to avoid that since other pages will also have full color StackLayout backgrounds.

It fills properly when I don't set VerticalOptions, but I'd really like to center it. Please help!

With CenterAndExpand

Without CenterAndExpand (how else could I center this?!)


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>