Ooui-tws-port/Samples/ButtonXamlPage.xaml.cs

24 lines
475 B
C#
Raw Normal View History

2017-11-16 05:59:40 +00:00
using System;
using Xamarin.Forms;
namespace ButtonXaml
{
public partial class ButtonXamlPage
{
int count = 0;
public ButtonXamlPage()
{
InitializeComponent();
}
public void OnButtonClicked(object sender, EventArgs args)
{
count++;
((Button)sender).Text =
String.Format("{0} click{1}!", count, count == 1 ? "" : "s");
}
}
}