自定义Web浏览器控件放置事件 [英] custom web browser control drop event
问题描述
WPF Web浏览器确实有一个drop事件,但是在使用WPF Web浏览器并设置allowDrop = true并添加一个drop事件之后,当我将某些东西拖到浏览器中时,不会调用drop事件侦听器. ..相反,它的行为就像Windows窗体网络浏览器一样,并且只是在网络浏览器中打开该文件
;
the WPF web browser indeed have a drop event but then again after using the WPF web browser and setting allowDrop = true and adding a drop event, the drop event listener doesn't get called when i drag something into the browser.... instead it behaves just like the windows form web browser and just opens that file on the web browser
webFileBrowser.AllowDrop = true
;
webFileBrowser.Drop += new
System.Windows.DragEventHandler(webFileBrowser_Drop);
推荐答案
您好,
添加drop事件,当我将某些东西拖到浏览器中时,drop事件监听器不会被调用
对于WebBrowser.DragEnter事件,当基础拖动事件通过拖动元素引发时,它将触发.您拖动了哪种元素?
谢谢.
真诚地.
Hi,
adding a drop event, the drop event listener doesn't get called when i drag something into the browser
For WebBrowser.DragEnter event, when an underlying drag event raises with a dragged element, it will fire. What kind of element did you drag?
Thanks.
Sincerely.
这篇关于自定义Web浏览器控件放置事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!