CEFSharp DragDropManager Customization

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

CEFSharp DragDropManager Customization

Postby anukarshprasad » Sun Jan 27, 2019 10:11 am

Hi

We have set up a WPF application with CEF. We are using DragDropManager to drag and drop files from the WPF menu into a text box in CEF. For which we have set the AllowDrop flag to true for the entire browser. This is leading to an issue where we cannot set the drag effect to "DragDropEffects.None" while dragging to any other element other than the textbox. Is there any way we can handle it using HTML/CSS/JS? Or is there a possibility to selectively set AllowDrop to true by manipulating the dragover event?

Have tried a solution of blocking the ondragstart and ondrop in JS(angularJs) but doesn't seem to work.
anukarshprasad
Newbie
 
Posts: 1
Joined: Sun Jan 27, 2019 10:07 am

Re: CEFSharp DragDropManager Customization

Postby Czarek » Thu Feb 07, 2019 6:32 am

This is CEF C++ forum. Have you tested with cefclient sample app with the --off-screen-rendering-enabled option?
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 45 guests