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

Entry field size in a grid

$
0
0

I am using a two column grid to layout my form. The columns are defined as 20% and 80%. I have an entry field in the 80% side, and am trying to control the width using the WidthRequest property. The entry fields does not respect this size attribute. It fills the cell in the grid. How can I make this work?

     <Entry Grid.Row="3" Grid.Column="1"  Style="{StaticResource EntryField}"  WidthRequest="300" Text="{Binding City}"/>

Trying to achieve:
Name Dave
Address 123 North st.
City LA


Viewing all articles
Browse latest Browse all 89864

Trending Articles



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