-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Issue11430.cs
55 lines (46 loc) · 1.13 KB
/
Issue11430.cs
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
54
55
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
#if UITEST
using Xamarin.UITest;
using NUnit.Framework;
using Xamarin.Forms.Core.UITests;
#endif
namespace Xamarin.Forms.Controls.Issues
{
#if UITEST
[Category(UITestCategories.Frame)]
#endif
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Github, 11430,
"[Bug] [iOS] Button stays in Pressed state if the touch-up event occurs outside",
PlatformAffected.iOS)]
public class Issue11430 : TestContentPage
{
public Issue11430()
{
}
protected override void Init()
{
Title = "Issue 11430";
var layout = new StackLayout();
var instructions = new Label
{
Padding = 12,
BackgroundColor = Color.Black,
TextColor = Color.White,
Text = "Tap a Button, drag your finger outside the Button and lift up your finger. If the Button state is Normal, the test has passed."
};
var button = new Button
{
Text = "Click Me"
};
layout.Children.Add(instructions);
layout.Children.Add(button);
Content = layout;
button.Clicked += (sender, args) =>
{
DisplayAlert("Issue 11430", "Button Clicked.", "Ok");
};
}
}
}