Exemple #1
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     if (StartOrStop.Content.Equals("开始"))
     {
         gifImage.StartAnimate();
         StartOrStop.Content = "结束";
     }
     else
     {
         gifImage.StopAnimate();
         StartOrStop.Content = "开始";
     }
 }