How to use Aspose.Email.Windows.WPF.FileDropPanel (C# .NET)

Hi,
I want to use the panel. I inserted it into a WPF form. The drop event fires when I drag an email item to the panel. But how do I get the content of the mail or can I save it as .msg? Do I need the class Aspose.Email.Windows.WPF.FileDropEventArgs? How do I use it? System.Windows.DragEventArgs e cannot be converted to Aspose.Email.Windows.WPF.FileDropEventArgs.

Thanks
Markus

@MarkusPlesoft,

I have observed your requirements and have created an issue with ID EMAILNET-39526 as support request to further investigate and addressing your requirements. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

Hi,

I figured it out by now. The code doesn’t belong in the event Drop but in the FilesDropped of the panel. There the parameter Aspose.Email.Windows.WPF.FileDropEventArgs is already correctly present. I can now accept and save Outlook emails.

Unfortunately FilesDroped does not react to mails from other programs (e.g. Thunderbird) or to other files. How can I handle them? Does this have to happen in parallel in the drop event?

Thank you

@MarkusPlesoft,

Please check attached archive simple wpf solution with using FileDropPanel functionality. Directory Samples contains small video which shows how it work. Please don’t forget add reference to Aspose.Email and set correct license. WpfApp1.zip

Hi,

i have downloaded and tested your project. Outlook mails are processed first files_dropped, then files_dropped2. But with other mails (.eml, .msg, from Thunderbird) nothing happens to me.

With other file types (.docx, .pdf,…) nothing happens either. Only for .zip archives the code is called in files_dropped2. Do I still have to switch something on? We need a drop panel that is suitable for all file types.

For FilesDropped it might be useful to have a property e.handled after handling Outlook mails to prevent files_dropped2 from being called.

Many thanks

@MarkusPlesoft,

I have observed the requirements shared by you and have added the details in concerned ticket associated with this thread. We will share the feedback with you as soon as possible in this regard.