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

Simple Custom Control - How to set child height = Parent Grid height?

$
0
0

I have a simple control deriving from ContentView that is a grid with a boxview in it.

The grid expands to the height of the view using HeightRequest, but I cannot get the child BoxView to use the control or grid's height.

I've tried various bindings (control height, parent grid height), but ended up adding a PropertyChanged event handler watching e.PropertyName = "Height". That seems like the harder way.

I also tried a RelativeLayout but that didn't get anywhere.

Thanks in advance. Loving Forms, just need to get some of these basics out of the way.


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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