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

Set height of a layout depending on screen size

$
0
0

Hi,

On every page of my project I put an AbsoluteLayout (A) (I use it as a custom navigation bar) and I set its properties like this:

<AbsoluteLayout
                    AbsoluteLayout.LayoutBounds="0, 0, 1, 44"
                    AbsoluteLayout.LayoutFlags="PositionProportional,WidthProportional">

Below it I put another AbsoluteLayout (B) which is my actually my real page.

How can I set B's properties to be like:

<AbsoluteLayout
                    AbsoluteLayout.LayoutBounds="0, 0, 1, ScreenSize - 44"
                    AbsoluteLayout.LayoutFlags="PositionProportional,WidthProportional">

Thanks


Viewing all articles
Browse latest Browse all 81910

Trending Articles



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