C#C
C#3y ago
Khifeli

❔ Custom File Drag & Drop on MAUI Windows app

Hello,

I am currently migrating a WPF project to MAUI. Given the fact that MAUI is a cross platform application, the Drag & Drop feature on Windows is not really working. What I want to achieve is to be able to drag files from the Desktop, but only custom extension files to be dropped (e.g. example.xyz). When dropped, in the code behind I want to be able to get the file absolute path.
Anyone knowing how can I achieve this?
Thanks!
Was this page helpful?