摘要:
using System.Windows.Controls;namespace test{ public class MacTextBox : TextBox { private string _lastText = ""; protected overrid... 阅读全文
摘要:
个人理解:as跟isis 相当于判断里的“==” 是与否if(e.OriginalSource is Button)as 一般用来转换另一种objecte.OriginalSource as Button来获取相关属性或值e.OriginalSource as RadioButton).Name.T... 阅读全文
摘要:
private void dataGrid_MouseRightButtonDown(object sender, MouseButtonEventArgs e) { ContextMenu context = new ContextMenu(); ... 阅读全文
摘要:
引用using Shell32; private void Open_Click(object sender, RoutedEventArgs e) { OpenFileDialog ofd = new OpenFileDialog(); ... 阅读全文
摘要:
private void Button_Click(object sender, RoutedEventArgs e) { Popup1.PlacementTarget = TesTextBox; Popup1.Placeme... 阅读全文