可采用如下方法实现: bool processing; void btn_1(object sender, RoutedEventArgs e) { if(processing == true) return; try { processing = true; //执行需要2秒以上 } finally { processing = false; } }