MainWindow.xaml


<Window x:Class="WPF.DragDropSample.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:WPF="clr-namespace:DotNetBrowser.WPF;assembly=DotNetBrowser" 
        Title="MainWindow" Height="472.343" Width="525">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="25*"/>
            <RowDefinition Height="90"/>
        </Grid.RowDefinitions>
        <WPF:WPFBrowserView Name="browserView" Grid.Row="0" URL="http://html5demos.com/dnd-upload"/>
        <TextBox Name="Output" HorizontalAlignment="Stretch" Grid.Row="1" VerticalAlignment="Stretch" 
                       IsReadOnly="True" AllowDrop="False" IsUndoEnabled="False" VerticalScrollBarVisibility="Auto"/>
    </Grid>
</Window>


MainWindow.xaml.cs


using DotNetBrowser.Events;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace WPF.DragDropSample
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            browserView.Browser.DragEnterEvent += Browser_DragEnterEvent;
            browserView.Browser.DragExitEvent += Browser_DragExitEvent;
            browserView.Browser.DropEvent += Browser_DropEvent;
        }

        private void Browser_DropEvent(object sender, DragDropEventArgs e)
        {
            Log("Drop event");
            PrintEventDetails(e);
        }

        private void Browser_DragExitEvent(object sender, DragDropEventArgs e)
        {
            Log("DragExit event");
            PrintEventDetails(e);
        }

        private void Browser_DragEnterEvent(object sender, DragDropEventArgs e)
        {
            Log("DragEnter event");
            PrintEventDetails(e);
        }

        private void PrintEventDetails(DragDropEventArgs e)
        {
            Log("Data type = " + e.DragDropDataType.ToString());
            Log("Data: ");
            foreach (string data in e.Data)
            {
                Log(data);
            }
            Log("");
        }
        private void Log(string text)
        {
            Dispatcher.BeginInvoke(new Action(() =>
            {
                Output.AppendText(text+"\n");
                Output.ScrollToEnd();
            }));
        }
    }
}