Button按扭的Enabled=false/true方法
private void Btn_Login_Click(object sender, RoutedEventArgs e)
{
//btn_login.Enabled=false;方法
new Thread(() =>
{
this.LayoutRoot.Dispatcher.BeginInvoke(() =>
{
this.Btn_Login.IsEnabled = false;
});
}).Start();
Button按扭的Enabled=true
new Thread(() =>
{
this.LayoutRoot.Dispatcher.BeginInvoke(() =>
{
//this.Btn_Login.Visibility = System.Windows.Visibility.Visible;
this.Btn_Login.IsEnabled = true;
});
}).Start();
}