top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

How to draw rectangle in Xamarin.Forms?

0 votes
62 views
How to draw rectangle in Xamarin.Forms?
posted Oct 10, 2017 by Jdk

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Using BoxView you can draw a rectangle.Below is a Example of Rectangle whose background color is red.

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:d="http://xamarin.com/schemas/2014/forms/design"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             mc:Ignorable="d"
             x:Class="ImageSlider.Views.BoxView">
    <Grid>
        <BoxView BackgroundColor="Red" HeightRequest="120" VerticalOptions="Start" HorizontalOptions="Fill" Margin="10">

        </BoxView>
    </Grid>

</ContentPage>
answer Jul 25 by Rushabh Verma R.
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...