简体   繁体   English

最小化时如何调整cefsharp devtools的大小?

[英]How can I resize cefsharp devtools when it is minimized?

When using cefsharp on winforms, after opening devtools, when minimized , devtools disappears!在winforms上使用cefsharp时,打开devtools后,最小化后,devtools就消失了! It is not in the taskbar.它不在任务栏中。 It cannot be opened again.它无法再次打开。 What should I do?我应该怎么办? Call browser.ShowDevTools() again and it will not come out.再调用browser.ShowDevTools()就出不来了。 How can I resize it?我该如何调整它的大小?

If at all possible I'd suggest you upgrade to the current supported version (102 at time of writing), you'll get a huge number of bug fixes and improvements.如果可能的话,我建议您升级到当前支持的版本(撰写本文时为 102),您将获得大量错误修复和改进。

In newer versions the DevTools Window will appear in the task bar.在较新的版本中, DevTools Window将出现在任务栏中。 This behaviour was changed in version 79 , relevant commit .此行为在版本79中已更改,相关提交


If you are unable to upgrade then you'll need to change how you open DevTools .如果您无法升级,则需要更改打开DevTools的方式。

The following should hopefully work, I've not tested.以下应该有希望工作,我没有测试过。

var host = chromiumWebBrowser.GetBrowser().GetHost();

var windowInfo = new WindowInfo();
windowInfo.SetAsPopup(null, "DevTools");

host.ShowDevTools(windowInfo);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM