Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. <i:Interaction.Behaviors>
  2. <beh:EventToCommandBehavior Command="{Binding DropCommand}" Event="Drop" PassArguments="True" />
  3. </i:Interaction.Behaviors>
  4.  
  5. public ActionCommand<DragEventArgs> DropCommand { get; private set; }
  6.  
  7. this.DropCommand = new ActionCommand<DragEventArgs>(OnDrop);
  8.  
  9. private void OnDrop(DragEventArgs e)
  10. {
  11. // ...
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement