I'm working on a xamarin forms application in which I have a requirement where I have to design a page in XAML, I have 2 entry field and a button inside a stacklayout vertically align.
<Entry Placeholder="Username" HorizontalOption="FillAndExpand" HeightRequest="30" WidthRequest="100" BackgroundColor="#3079a8" TextColor="Black" />
<Entry Placeholder="Password" HorizontalOption="FillAndExpand" HeightRequest="30" WidthRequest="100" BackgroundColor="#3079a8" TextColor="Black" />
<Button Text="Login" HorizontalOption="FillAndExpand" HeightRequest="30" WidthRequest="100" BackgroundColor="#3079a8" TextColor="White" />
I want to use same Xaml file for mobile also but how to give HeightRequest and WidthRequest so that Button can adjust according to screen size for phone ad ipad both.