SHARE
TWEET

Untitled

a guest Jun 15th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private void rect_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
  2.     {
  3.         Rectangle r = (Rectangle)sender;
  4.         DataObject dataObj = new DataObject(r.Fill);
  5.         DragDrop.DoDragDrop(r, dataObj, DragDropEffects.Move);
  6.     }
  7.  
  8.     private void Spadnuti_Drop(object sender, DragEventArgs e)
  9.     {
  10.         SolidColorBrush scb = (SolidColorBrush)e.Data.GetData(typeof(SolidColorBrush));
  11.         Spadnuti.Fill = scb;
  12.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top