Skip to content

Instantly share code, notes, and snippets.

@karno
Last active December 31, 2015 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karno/8035587 to your computer and use it in GitHub Desktop.
Save karno/8035587 to your computer and use it in GitHub Desktop.
using System;
using System.Windows;
namespace Karno.Xac.Sample
{
public sealed class DropAcceptDescription
{
public event Action<DragEventArgs> DragOver;
public void OnDragOver(DragEventArgs dragEventArgs)
{
var handler = DragOver;
if (handler != null)
{
handler(dragEventArgs);
}
}
public event Action<DragEventArgs> DragDrop;
public void OnDrop(DragEventArgs dragEventArgs)
{
var handler = DragDrop;
if (handler != null)
{
handler(dragEventArgs);
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment