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

How to draw a separator

$
0
0

I am struggling to figure out how to draw a line to separate controls from one another.

In WPF, I use a rectangle and set its height or width to "1" and set its fill property to LightGray.
I would then set the VerticialAlignment or HorizontalAlignment to "Stretch".

However, I do not know how to do this in Xamarin.Forms.

I've tried the following:

<Rectangle Fill="LightGray" Height="1" LayoutOptions="CenterAndExpand" />

Any suggestions?


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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