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