Created
April 25, 2022 05:08
-
-
Save hilapon/82ccd8a08839d18611e62d2ca7e8f20d to your computer and use it in GitHub Desktop.
ボタンクリックイベントの実装
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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