简体   繁体   English

XAML浏览器窗口控件

[英]XAML browser window control

We are running a Windows application built with XAML and C#. 我们正在运行使用XAML和C#构建的Windows应用程序。

We are using the web browser control as part of our application in which we are feeding a webpage into it controlled controlled in our CMS so we can control the content of the webpage. 我们将Web浏览器控件用作应用程序的一部分,在该应用程序中,我们将网页输入到CMS中受控的控件中,以便我们可以控制网页的内容。

I did an alert to see what version the built in browser was for our XAML project. 我发出警报以查看XAML项目的内置浏览器版本。 The browser ended up being MSIE 7. BIG NO NO. 浏览器最终是MSIE 7。 We want to be able to use some more modern web languages like HTML 5 that feeds the page. 我们希望能够使用一些更现代的Web语言(例如HTML 5)来填充页面。

Is there a way to update the browser window IE version or a way to tell the browser window control to use Chrome or other browser instead of the default one? 有没有更新浏览器窗口IE版本的方法,或告诉浏览器窗口控件使用Chrome或其他浏览器而不是默认浏览器的方法?

Thanks. 谢谢。

Carlos 卡洛斯

As far as I remember in WinForms, the WebBrowser version was the same as the version of IE installed on that machine, I'm assuming it's still the same in WPF. 据我记得在WinForms中, WebBrowser版本与该计算机上安装的IE版本相同,我假设在WPF中它仍然相同。 And no, you can't change the default control to use Chrome. 不,您不能将默认控件更改为使用Chrome。 There is however, a .NET implementation of Chromium which according to its documentation supports HTML5 as well. 但是,存在Chromium.NET实现 ,根据其文档,它也支持HTML5。

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

相关问题 XAML用户控件/窗口大小 - XAML user control / window sizing 更改WPF / XAML Web浏览器控件上的用户代理? - Change User Agent on WPF/XAML Web Browser control? 在Window Store应用程序中的画布XAML上拖动元素并控制其移动 - Drag elements on canvas xaml in window store app and control its movement XAML设计器中带有用户控件引发异常的WPF窗口 - WPF window with user control throwing exception in XAML designer 在XAML中,如何使弹出控件的高度占主窗口的百分比? - In XAML, How to Make the Popup Control Height a Percentage of the Main Window? 根据浏览器窗口大小调整Silverlight控件的大小 - Resize silverlight control as per browser window size Web浏览器控件 - 检测js window.close何时被调用 - web browser control - detect when js window.close is called 如何在xaml页中创建和存储历史记录列表以用于wp7的浏览器控件 - How to create and store history list in xaml page for a browser control for wp7 在WPF中,如何从嵌套用户控件访问Window.xaml中定义的对象? - In WPF how do you access an object defined in Window.xaml from a nested user control? 无法弄清楚如何从单独的.xaml窗口更新文本框控件 - Cannot figure out how to update a textbox control from a separate .xaml window
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM