public static void OnPasteCommand(object sender, DataObjectEventArgs e) { e.CancelCommand(); }
//----------------------------------------------------------------------------// // Handlers // //----------------------------------------------------------------------------// //////////////////////////////////////////////////////////////////////////////// /// <summary> </summary> private void OnCancelCommand(object sender, DataObjectEventArgs args) { args.CancelCommand(); }
/// <summary> /// Cancel ctrl-v (paste) /// </summary> private void OnCancelCommand(object sender, DataObjectEventArgs e) { e.CancelCommand(); }
private void PastingEventHandler(object sender, DataObjectEventArgs e) { // Prevent copy/paste e.CancelCommand(); }
private void OnPaste(object sender, DataObjectEventArgs e) { ((System.Windows.DataObjectPastingEventArgs)(e)).FormatToApply = "Text"; }