blob: 512b19434456a6419ce6c7f98b096bbe143832d9 (
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
|
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
namespace Xamarin.Forms.Controls.Issues
{
[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
}
};
}
}
}
|