本文介绍了CefSharp.WinForms.ChromiumWebBrowser自定义权限上下文菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在项目中使用CefSharp.WinForms.ChromiumWebBrowser v41.0.1.当我右键单击Web浏览器时,默认的右键上下文菜单只有几个项目.

I'm using CefSharp.WinForms.ChromiumWebBrowser v41.0.1 in my project.When I right click into webbrowser, default right context menu only have a few items.

我想自定义它的右键菜单,例如添加重新加载功能...但是我找不到任何办法.

I want to customize it's right context menu, e.g add Reload function...But I can't find any way to do that.

有人帮我吗?

推荐答案

不幸的是,该功能在当前发行版( 41.0.1 )中不可用.

Unfortunately that feature is no available in the current release version (41.0.1).

最近合并了PR,添加了该功能. https://github.com/cefsharp/CefSharp/pull/1219

A PR was merged recently that adds that functionality.https://github.com/cefsharp/CefSharp/pull/1219

它将在下一个 -pre 版本中提供,应该很快发布.

It will be available in the next -pre release which should be out shortly.

这篇关于CefSharp.WinForms.ChromiumWebBrowser自定义权限上下文菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-04 16:12