summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla33890.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla33890.cs')
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla33890.cs38
1 files changed, 38 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla33890.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla33890.cs
new file mode 100644
index 00000000..bb3a3765
--- /dev/null
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla33890.cs
@@ -0,0 +1,38 @@
+using Xamarin.Forms.CustomAttributes;
+
+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
+ }
+ };
+ }
+ }
+} \ No newline at end of file