admin管理员组文章数量:1391999
I have the follwing app.
public partial class Form1 : Form
{
private Microsoft.Web.WebView2.WinForms.WebView2 mBrowser = new Microsoft.Web.WebView2.WinForms.WebView2();
public Form1()
{
InitializeComponent();
string webContent = "C:\\Users\\username\\AppData\\Local\\Temp\\CommonNavigation.html";
mBrowser.AllowExternalDrop = true;
mBrowser.CreationProperties = null;
mBrowser.Dock = DockStyle.Fill;
mBrowser.Name = "webView";
mBrowser.TabIndex = 0;
mBrowser.ZoomFactor = 1D;
mBrowser.Source = new Uri(webContent);
flyoutPanel1.OwnerControl = this;
flyoutPanel1.Options.AnchorType = DevExpress.Utils.Win.PopupToolWindowAnchor.Manual;
flyoutPanel1.Options.CloseOnOuterClick = true;
flyoutPanelControl1.Controls.Add(mBrowser);
flyoutPanel1.Size = new Size(300, this.Height - 100);
}
private void button1_Click(object sender, EventArgs e)
{
flyoutPanel1.ShowPopup();
}
}
When I run this, and I click the button, I see the flyout and the content. I click on a button in the content and it reacts correctly. See below GoodRendering But if I change the height value of 100 to 50 in flyoutPanel1.Size; and I click the same button on the content; I get this BadRendering
Any help is appreciated.
Searched all over for WebView2 examples. Be able to show the content properly on WebView2
本文标签:
版权声明:本文标题:c# - WebView2 inside a DevExpress FlyoutPanel does not render correctly after changing FlyoutPanel Height - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744671940a2618877.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论