summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2288.xaml.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2288.xaml.cs')
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2288.xaml.cs40
1 files changed, 40 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2288.xaml.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2288.xaml.cs
new file mode 100644
index 00000000..fa9d45c9
--- /dev/null
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2288.xaml.cs
@@ -0,0 +1,40 @@
+´╗┐using System;
+using System.Collections.Generic;
+
+using Xamarin.Forms;
+using System.ComponentModel;
+using Xamarin.Forms.CustomAttributes;
+
+namespace Xamarin.Forms.Controls
+{
+#if APP
+ [Preserve (AllMembers = true)]
+ [Issue (IssueTracker.Github, 2288, "ToolbarItem.Text change", PlatformAffected.iOS | PlatformAffected.Android)]
+ public partial class Issue2288 : ContentPage
+ {
+ int _count = 0;
+ public Issue2288 ()
+ {
+ InitializeComponent ();
+ MainText = "initial";
+ MainTextCommand = new Command(o =>
+ {
+ MainText = "changed " + _count++;
+ });
+
+ BindingContext = this;
+ }
+
+ string _mainText;
+ public string MainText {
+ get { return _mainText; }
+ set {
+ _mainText = value;
+ OnPropertyChanged ();
+ }
+ }
+
+ public Command MainTextCommand { get; set; }
+ }
+#endif
+} \ No newline at end of file