Dragn
Drop from Avalonia app to OS file system (Desktop, etc)
#15042
-
Is there any possibility in Avalonia to drag and drop a file from the Avalonia application to the Windows desktop? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 19 replies
-
Avalonia -> filesytem not opposite ? |
Beta Was this translation helpful? Give feedback.
-
DragDrop.DoDragDrop for that. But you need to do it from pointer event handler, like pointer pressed. |
Beta Was this translation helpful? Give feedback.
-
I've been trying this, however the MacOS accepts only Text and not Files data format. Basically no matter which file of IStorage array/list I provide, it's like the MacOS just ignores/doesn't accept it. Can anyone provide a quick code example or documentation link? @maxkatz6 perhaps? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Sorry, github ate my generics...
IEnumerable<IStorageItem>
it is.