You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
408 B

1 year ago
  1. namespace GMCabsDriverAssistantSolution;
  2. public partial class MainPage : ContentPage
  3. {
  4. int count = 0;
  5. public MainPage()
  6. {
  7. InitializeComponent();
  8. }
  9. private void OnCounterClicked(object sender, EventArgs e)
  10. {
  11. count++;
  12. if (count == 1)
  13. CounterBtn.Text = $"Clicked {count} time";
  14. else
  15. CounterBtn.Text = $"Clicked {count} times";
  16. SemanticScreenReader.Announce(CounterBtn.Text);
  17. }
  18. }