blob: 8f972312e952d7ab901b53ced9cfa5c57b58cab5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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
}
};
}
}
}
|