Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report for Bug 41474 on
Developer Community or GitHub if you have new
information to add and do not yet see a matching new report.
If the latest results still closely match this report, you can use the
In special cases on GitHub you might also want the comments:
GitHub Markdown with public comments
# Steps to reproduce
<?xml version="1.0" encoding="utf-8" ?>
<StackLayout Orientation="Vertical" VerticalOptions="CenterAndExpand"
<Entry x:Name="enEmail" Placeholder="Email"></Entry>
<Entry x:Name="enPassword" IsPassword="True" Placeholder="Password"></Entry>
<Button Text="Login" Clicked="OnClicked_btnLogin" x:Name="btnLogin"></Button>
<Button Text="Register" Clicked="OnClicked_btnRegister" x:Name="btnRegister"></Button>
# Expected behavior
Scrollable center vertical aligned stacklayouit controls for Android and Windows
# Actual behavior
But it is working only for Android at the moment. When I take out the scrollview it works in both but then clicking on entry field brings the andoid keyboard on top of entry field and my form doesn't scroll
# Supplemental info (logs, images, videos)
# Test environment (full version information)
(In reply to Atul Chaudhary from comment #0)
> <ScrollView x:Name="scrollView">
Does changing this line to:
<ScrollView x:Name="scrollView" VerticalOptions="CenterAndExpand">
Fix your issue?
If I set <ScrollView x:Name="scrollView" VerticalOptions="CenterAndExpand">. It works but when you click on Entry the android keyboard comes on top of my entry wihch is not what I am expecting and therefor can't use it. :(
Created attachment 16614 [details]
The ScrollView layout behavior is inconsistent between Android, iOS, and Windows Phone.
On Android and iOS, the attached repro project will display the form vertically centered. When focusing the Entry controls on small enough screens, the controls will be scolled vertically so as not to be covered by the on-screen keyboard.
On Windows Phone, the attached project will display the form at the top of the screen, which is inconsistent with the other platforms.
This behavior is still occurring on 188.8.131.52.