Skip to content

Instantly share code, notes, and snippets.

@hilapon
Created April 25, 2022 05:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hilapon/82ccd8a08839d18611e62d2ca7e8f20d to your computer and use it in GitHub Desktop.
Save hilapon/82ccd8a08839d18611e62d2ca7e8f20d to your computer and use it in GitHub Desktop.
ボタンクリックイベントの実装
namespace MauiApp2;
public partial class MainPage : ContentPage {
int count = 0;
public MainPage() {
InitializeComponent();
}
private void OnCounterClicked(object sender, EventArgs e){
count++;
CounterLabel.Text = $"Current count: {count}";
SemanticScreenReader.Announce(CounterLabel.Text);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment