Is there any other alternative to use the functionality of dragging and dropping an email item from new outlook1.2024.508.600 (Production) version( ) to WPF form using C#?

Amit Kumar 0 Reputation points
2024-05-15T06:30:48.9933333+00:00

I have an existing functionality where I drag and email item from outlook and drop it in the WPF form and it is dropped there along with its attachments. This works fine with Classic outlook but doesn't seem to be working with New outlook (1.2024.508.600 (Production)) version.

e.Data.GetFormats(); when i use this method after dragging and dropping an item from new outlook, it just has 4 items returned and it doesn't have "FileGroupDescriptorW" or "FileGroupDescriptor" data formats available. and hence not able to get the file contents as well using - dataObject.GetData("FileContents");

e.Data.GetFormats(): with old classic outlook returns array of strings with 17 items. and has all the needed data formats.

Can you please help with this? How can I still keep up with drag and drop functionality using new outlook?

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,869 questions
Outlook
Outlook
A family of Microsoft email and calendar products.
3,143 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,692 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,599 questions
0 comments No comments
{count} votes