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

Why my StackLaout doesn't display 5% from left edge?

$
0
0

Hello,
I wanted to display a StackLayout that would be 5% from top, left and right and would take about 1/3 of screen height.
Here's my XAML:
`<?xml version="1.0" encoding="UTF-8"?>

<AbsoluteLayout BackgroundColor="Yellow" >
    <StackLayout AbsoluteLayout.LayoutBounds="0.05, 0.05, 0.9, 0.25" AbsoluteLayout.LayoutFlags="All" BackgroundColor="Aqua">

    </StackLayout>
</AbsoluteLayout>

`

I get this result:

What's wrong with my layout? I can't think of a solution.


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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