WPF Drag Event auf WindowsFormsHost Element



  • Hallo ich hab folgendes Problem:
    Ein Drag Event auf ein WindowsFormsHost Element scheint nich zu funktionieren.

    Ich habe hier folgenden WPF Code:

    <my:WindowsFormsHost Name="WindowsFromHostRenderBox" xmlns:my="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration" Margin="120,22,0,21" AllowDrop="True" Drop="WindowsFromHostRenderBoxDropEvent" Background="Cyan">
                <Forms:PictureBox x:Name="RenderBox" Width="680" Height="578" AllowDrop="True" DragDrop="PictureBoxDragDropEvent" />
            </my:WindowsFormsHost>
    

    Wenn ich jetzt etwas auf dieses Element ziehen möchte verändert sich der Mauszeiger aber leider zu diesem Verboten Schild das eigentlich kommt wenn man AllowDrop auf false hat. Was kann ich nun tun damit es funktioniert?

    Grüße NIls


Anmelden zum Antworten