I'm currently in need to capture the Drop event of the WPF WebBrowser control but for some reason it's not firing. If I drag a .pdf file into the control it's being displayed but the Drop event isn't firing.
Small sample: Create a new WPF project, add this inside the XAML code of the MainWindow.xaml between the Grid tags:
<WebBrowser Name="test" />
And change the MainWindow.xaml.cs so it looks like this:
 public MainWindow()
        {
            InitializeComponent();
            test.AllowDrop = true;
            test.Drop += test_Drop;
        }
        void test_Drop(object sender, DragEventArgs e)
        {
            MessageBox.Show("Hi");
        }
The messagebox will not be displayed when you drop a PDF file inside the WebBrowser control. What am I doing wrong?
 
     
    