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

Change Z-Index in a RelativeLayout *Resolved*

$
0
0

Hi,

I have a RelativeLayout with a Label and a BoxView whos Height should be the height of that label. The problem is that I need to add the BoxView to the RelativeLayout.Children first for it to be underneath the Label, but if I do that, I can't link it to the Label's height since the Label doesn't exist in the layout yet.

How can I resolve this? Ideally I could just change the Z index of the BoxView to be behind everything but I don't see a method to do this.

Edit: Nevermind, I've just found the LowerChild method in RelativeLayout that should do 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>