summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue229.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue229.cs')
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue229.cs29
1 files changed, 29 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue229.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue229.cs
new file mode 100644
index 00000000..d0c36ac2
--- /dev/null
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue229.cs
@@ -0,0 +1,29 @@
+´╗┐using System;
+using System.Diagnostics;
+
+using Xamarin.Forms.CustomAttributes;
+
+namespace Xamarin.Forms.Controls
+{
+ [Preserve (AllMembers=true)]
+ [Issue (IssueTracker.Github, 229, "ToolbarItems broken", PlatformAffected.Android)]
+ public class Issue229 : ContentPage
+ {
+ public Issue229 ()
+ {
+ Title = "I am a navigation page.";
+
+ var label = new Label {
+ Text = "I should have a toolbar item",
+ XAlign = TextAlignment.Center,
+ YAlign = TextAlignment.Center
+ };
+
+ var refreshBtn = new ToolbarItem ("Refresh", null, () => label.Text = "Clicking it works");
+
+ ToolbarItems.Add (refreshBtn);
+
+ Content = label;
+ }
+ }
+}