Skip to content

Instantly share code, notes, and snippets.

@hilapon
Last active April 19, 2022 04:33
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/e72041fd35c1e0d2f0f8f18f0c79384d to your computer and use it in GitHub Desktop.
Save hilapon/e72041fd35c1e0d2f0f8f18f0c79384d to your computer and use it in GitHub Desktop.
MainPage のコードビハインド
namespace MauiApp1;
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