摘要:
public Window1(){ InitializeComponent(); // "tb" is a TextBox DataObject.AddPastingHandler(tb, new DataObjectPastingEventHandler(OnPaste));}private void OnPaste(object sender, DataObjectPastingEventArgs e){ var isText = e.SourceDataObject.GetDataPresent(System.Windows.DataFormats.Text, t.. 阅读全文