private async void SendButton_Click(object sender, RoutedEventArgs e)
        {
            var button = sender as Button;
            var text = button.Content.ToString();
            if (SendVerifyCodeCommand?.CanExecute(null) == true)
            {
                SendVerifyCodeCommand?.Execute(null);
            }
            button.IsEnabled = false;
            for (int i = 90 - 1; i >= 0; i--)
            {
                button.Content = $"{i} s";
                await Task.Delay(TimeSpan.FromSeconds(1));
            }
            button.IsEnabled = true;
            button.Content = text;
        }

 

相关文章:

  • 2022-12-23
  • 2021-09-25
  • 2022-12-23
  • 2022-01-30
  • 2022-02-09
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
猜你喜欢
  • 2021-12-25
  • 2022-12-23
  • 2021-10-31
  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
相关资源
相似解决方案