예제 #1
0
 public static void OnPasteCommand(object sender, DataObjectEventArgs e)
 {
     e.CancelCommand();
 }
 //----------------------------------------------------------------------------//
 // Handlers                                                                   //
 //----------------------------------------------------------------------------//
 ////////////////////////////////////////////////////////////////////////////////
 /// <summary> </summary>
 private void OnCancelCommand(object sender, DataObjectEventArgs args)
 {
     args.CancelCommand();
 }
예제 #3
0
 /// <summary>
 /// Cancel ctrl-v (paste)
 /// </summary>        
 private void OnCancelCommand(object sender, DataObjectEventArgs e)
 {
     e.CancelCommand();
 }
예제 #4
0
 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";
 }