summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Controls.Issues')
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla33248.cs53
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems1
2 files changed, 54 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla33248.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla33248.cs
new file mode 100644
index 00000000..8f972312
--- /dev/null
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla33248.cs
@@ -0,0 +1,53 @@
+using System;
+using Xamarin.Forms.CustomAttributes;
+using Xamarin.Forms.Internals;
+
+#if UITEST
+using NUnit.Framework;
+using Xamarin.UITest;
+
+#endif
+
+namespace Xamarin.Forms.Controls.TestCasesPages
+{
+ [Preserve(AllMembers = true)]
+ [Issue(IssueTracker.Bugzilla, 33248, "Entry.Completed calling Editor.Focus() inserts new line to the focused Editor in iOS", PlatformAffected.iOS)]
+ public class Bugzilla33248 : TestContentPage
+ {
+ protected override void Init()
+ {
+ var editor = new Editor
+ {
+ BackgroundColor = Color.Yellow,
+ HeightRequest = 300
+ };
+ var entry = new Entry
+ {
+ BackgroundColor = Color.Red,
+ HeightRequest = 100
+ };
+
+ entry.Completed += (sender, e) => editor.Focus();
+
+ Content = new StackLayout
+ {
+ VerticalOptions = LayoutOptions.Start,
+ Children =
+ {
+ new Label
+ {
+ HorizontalTextAlignment = TextAlignment.Center,
+ Text = "Entry:"
+ },
+ entry,
+ new Label
+ {
+ HorizontalTextAlignment = TextAlignment.Center,
+ Text = "Editor:"
+ },
+ editor
+ }
+ };
+ }
+ }
+} \ 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 a420489c..fe0df146 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
@@ -55,6 +55,7 @@
<SubType>Code</SubType>
</Compile>
<Compile Include="$(MSBuildThisFileDirectory)Bugzilla32847.cs" />
+ <Compile Include="$(MSBuildThisFileDirectory)Bugzilla33248.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Bugzilla33268.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Bugzilla33612.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Bugzilla33714.cs" />