摘要: using System.Windows.Controls;namespace test{ public class MacTextBox : TextBox { private string _lastText = ""; protected overrid... 阅读全文
posted @ 2014-07-16 15:07 iEvent 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 个人理解:as跟isis 相当于判断里的“==” 是与否if(e.OriginalSource is Button)as 一般用来转换另一种objecte.OriginalSource as Button来获取相关属性或值e.OriginalSource as RadioButton).Name.T... 阅读全文
posted @ 2014-07-16 15:05 iEvent 阅读(275) 评论(0) 推荐(0) 编辑
摘要: private void dataGrid_MouseRightButtonDown(object sender, MouseButtonEventArgs e) { ContextMenu context = new ContextMenu(); ... 阅读全文
posted @ 2014-07-16 14:21 iEvent 阅读(1889) 评论(0) 推荐(0) 编辑
摘要: 引用using Shell32; private void Open_Click(object sender, RoutedEventArgs e) { OpenFileDialog ofd = new OpenFileDialog(); ... 阅读全文
posted @ 2014-07-16 14:16 iEvent 阅读(721) 评论(0) 推荐(0) 编辑
摘要: private void Button_Click(object sender, RoutedEventArgs e) { Popup1.PlacementTarget = TesTextBox; Popup1.Placeme... 阅读全文
posted @ 2014-07-16 10:21 iEvent 阅读(1812) 评论(0) 推荐(0) 编辑