23 lines
458 B
C#
23 lines
458 B
C#
|
namespace autosos_maui;
|
|||
|
|
|||
|
public partial class MainPage : ContentPage
|
|||
|
{
|
|||
|
int count = 0;
|
|||
|
|
|||
|
public MainPage()
|
|||
|
{
|
|||
|
InitializeComponent();
|
|||
|
}
|
|||
|
|
|||
|
private void OnCounterClicked(object sender, EventArgs e)
|
|||
|
{
|
|||
|
count++;
|
|||
|
|
|||
|
if (count == 1)
|
|||
|
CounterBtn.Text = $"Clicked {count} time";
|
|||
|
else
|
|||
|
CounterBtn.Text = $"Clicked {count} times";
|
|||
|
|
|||
|
SemanticScreenReader.Announce(CounterBtn.Text);
|
|||
|
}
|
|||
|
}
|