-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Bugzilla33890.cs
46 lines (42 loc) · 1.05 KB
/
Bugzilla33890.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
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
namespace Xamarin.Forms.Controls.Issues
{
#if UITEST
[NUnit.Framework.Category(Core.UITests.UITestCategories.Bugzilla)]
#endif
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Bugzilla, 33890, "Setting CancelButtonColor does not have any effect", PlatformAffected.iOS)]
public class Bugzilla33890 : TestContentPage
{
protected override void Init()
{
Label header = new Label
{
Text = "Search Bar",
FontAttributes = FontAttributes.Bold,
FontSize = 50,
HorizontalOptions = LayoutOptions.Center
};
SearchBar searchBar = new SearchBar
{
Placeholder = "Enter anything",
CancelButtonColor = Color.Red
};
Label reproSteps = new Label
{
Text =
"Tap on the search bar and enter some text. The 'Cancel' button should appear. If the 'Cancel' button is not red, this is broken.",
HorizontalOptions = LayoutOptions.Center
};
Content = new StackLayout
{
Children = {
header,
searchBar,
reproSteps
}
};
}
}
}