摘要: using System.Windows.Controls;namespace test{ public class MacTextBox : TextBox { private string _lastText = ""; protected overrid... 阅读全文
posted @ 2014-07-16 15:07 iEvent 阅读(388) 评论(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 阅读(273) 评论(0) 推荐(0) 编辑
摘要: private void dataGrid_MouseRightButtonDown(object sender, MouseButtonEventArgs e) { ContextMenu context = new ContextMenu(); ... 阅读全文
posted @ 2014-07-16 14:21 iEvent 阅读(1662) 评论(0) 推荐(0) 编辑
摘要: 引用using Shell32; private void Open_Click(object sender, RoutedEventArgs e) { OpenFileDialog ofd = new OpenFileDialog(); ... 阅读全文
posted @ 2014-07-16 14:16 iEvent 阅读(717) 评论(0) 推荐(0) 编辑
摘要: private void Button_Click(object sender, RoutedEventArgs e) { Popup1.PlacementTarget = TesTextBox; Popup1.Placeme... 阅读全文
posted @ 2014-07-16 10:21 iEvent 阅读(1803) 评论(0) 推荐(0) 编辑