Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2015
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. <Window x:Class="WpfApplication1.MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. Title="MainWindow" Height="350" Width="525" AllowDrop="True" >
  5. <Grid>
  6. <Label AllowDrop="True" Drop="UIElement_OnDrop" DragOver="UIElement_OnDragOver"></Label>
  7. </Grid>
  8. </Window>
  9.  
  10. private void UIElement_OnDragOver(object sender, DragEventArgs e)
  11. {
  12. e.Effects = DragDropEffects.Copy;
  13. }
  14.  
  15. private void UIElement_OnDrop(object sender, DragEventArgs e)
  16. {
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement