摘要: using System.Windows;using System.Windows.Controls;using System.Windows.Interactivity;using System.Windows.Media;using System.Windows.Controls.Primiti... 阅读全文
posted @ 2015-06-04 15:29 电脑小白 阅读(644) 评论(0) 推荐(0) 编辑
摘要: private DispatcherTimer TimeClose; //定义TimeClose = new DispatcherTimer(); TimeClose.Tick += new EventHandler(TimeClose_Tick); TimeClose.Interval = ne... 阅读全文
posted @ 2015-06-04 15:27 电脑小白 阅读(715) 评论(0) 推荐(0) 编辑
摘要: this.SourceInitialized += new EventHandler(win_SourceInitialized); //这里写在构造函数里 void win_SourceInitialized(object sender, EventArgs e) { HwndSource hwn... 阅读全文
posted @ 2015-06-04 15:25 电脑小白 阅读(1107) 评论(0) 推荐(0) 编辑
摘要: this.TB_tis.Dispatcher.Invoke(new Action(() => { this.TB_tis.Text = e.Message ; })); 阅读全文
posted @ 2015-06-04 15:21 电脑小白 阅读(387) 评论(0) 推荐(0) 编辑