title: How to set width of controls in Xamarin.Forms
body: <p>I've tried to adjust width &amp; height of my textbox [Entry] control in Xamarin.Forms for iPad app but it doesn't set the width using WidthRequest property.</p>
  
  <p>Can anyone please help me for the same about how to set the width of the controls.</p>
  
  <p>Here is my code of XAML for same using Grid &amp; StackLayout but none of them worked.</p>
  
  <pre><code>&lt;Grid VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" &gt;
      &lt;Grid.RowDefinitions&gt;
      &lt;RowDefinition Height="Auto"  &gt;&lt;/RowDefinition&gt;
      &lt;RowDefinition Height="*"&gt;&lt;/RowDefinition&gt;
      &lt;RowDefinition Height="10"&gt;&lt;/RowDefinition&gt;
      &lt;/Grid.RowDefinitions&gt;
      &lt;Grid.ColumnDefinitions&gt;
      &lt;ColumnDefinition Width="*"&gt;&lt;/ColumnDefinition&gt;
      &lt;/Grid.ColumnDefinitions&gt;
  
      &lt;Image Grid.Row="0" Grid.Column="0" Source="loginlogo.png"&gt;&lt;/Image&gt;
      &lt;StackLayout Grid.Row="1" Grid.Column="0"&gt;
      &lt;Entry Placeholder="Enter Username" WidthRequest="20"&gt;&lt;/Entry&gt;
      &lt;Entry Placeholder="Enter Password" WidthRequest="20"&gt;&lt;/Entry&gt;
      &lt;Button Text="Button 1"&gt;&lt;/Button&gt;
      &lt;/StackLayout&gt;
      &lt;/Grid&gt;
  </code></pre>
  
  <p>Also tried with Stack Layout</p>
  
  <pre><code>&lt;StackLayout Spacing="10"&gt;
      &lt;Entry x:Name="txtUserName" Placeholder="Enter Username" WidthRequest="2" HeightRequest="200"&gt;&lt;/Entry&gt;
      &lt;Entry x:Name="txtPassword" Placeholder="Enter Password" WidthRequest="2" HeightRequest="200"&gt;&lt;/Entry&gt;
      &lt;Button Text="Button 1"&gt;&lt;/Button&gt;&lt;/StackLayout&gt;
  </code></pre>