2016-03-22 23:02:25 +03:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
using Xamarin.Forms;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using Xamarin.Forms.CustomAttributes;
|
2016-04-26 18:20:55 +03:00
|
|
|
|
using Xamarin.Forms.Internals;
|
2016-03-22 23:02:25 +03:00
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
}
|