hawkerm / monaco-editor-uwp

A Windows Runtime Component wrapper around the web-based Monaco Editor.
MIT License
152 stars 36 forks source link

Drag and drop support needed(UWP) #73

Closed DmitryBorodiy closed 4 months ago

DmitryBorodiy commented 2 years ago

Hello! How I can implement drag & drop support in CodeEditor control?

Thank you! Best wishes!

hawkerm commented 2 years ago

@DmitryBorodiy what are you trying to drag and drop? Like loading a file? You should just be able to intercept a drag event like any other control and then read the StorageFile and load it yourself at the app level.

It could be interesting as part of a sample, but not something I would think the control should necessarily handle on its own.