summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues
diff options
context:
space:
mode:
authorDavid Ortinau <david.ortinau@microsoft.com>2017-07-24 21:00:20 (GMT)
committerE.Z. Hart <hartez@users.noreply.github.com>2017-07-24 21:00:20 (GMT)
commite828fa6fa5455b9700bf5169a9868851f18e17ea (patch)
treed5af3926038bb50b7648273770c7f096976d910b /Xamarin.Forms.Controls.Issues
parent7303d60ab69a0c2b3c3e54e177efa0d54a7a08de (diff)
downloadxamarin-forms-e828fa6fa5455b9700bf5169a9868851f18e17ea.zip
xamarin-forms-e828fa6fa5455b9700bf5169a9868851f18e17ea.tar.gz
xamarin-forms-e828fa6fa5455b9700bf5169a9868851f18e17ea.tar.bz2
when closing the Picker by tapping outside or hitting done, verify the source selection index matches the UI control. When it is in spin, the animation completes offscreen and the next time it opens you see the wrong row selected. (#1054)
Diffstat (limited to 'Xamarin.Forms.Controls.Issues')
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla39407.cs30
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems1
2 files changed, 31 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla39407.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla39407.cs
new file mode 100644
index 0000000..9ef8921
--- /dev/null
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla39407.cs
@@ -0,0 +1,30 @@
+´╗┐using Xamarin.Forms.CustomAttributes;
+using Xamarin.Forms.Internals;
+
+#if UITEST
+using Xamarin.UITest;
+using NUnit.Framework;
+#endif
+
+namespace Xamarin.Forms.Controls.Issues
+{
+ [Preserve(AllMembers = true)]
+ [Issue(IssueTracker.Bugzilla, 39407, "Picker doesn't reset to source selected index when closed while spinning, via touch outside or Done button.", PlatformAffected.iOS)]
+ public class Bugzilla39407 : TestContentPage
+ {
+ protected override void Init()
+ {
+ var picker = new Picker
+ {
+ ItemsSource = new string[] { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z" }
+ };
+ Content = new StackLayout
+ {
+ Children =
+ {
+ picker
+ }
+ };
+ }
+ }
+} \ No newline at end of file
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems
index 05f45c7..8f175b9 100644
--- a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems
@@ -584,6 +584,7 @@
<Compile Include="$(MSBuildThisFileDirectory)Bugzilla38731.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Bugzilla56710.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Bugzilla52700.cs" />
+ <Compile Include="$(MSBuildThisFileDirectory)Bugzilla39407.cs" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="$(MSBuildThisFileDirectory)Bugzilla22229.xaml">