如何将浏览器放在WPF C#应用程序中? [英] How to put a browser in a WPF C# Application?
本文介绍了如何将浏览器放在WPF C#应用程序中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图将WebBrowser放入C#WPF应用程序中,但是当我尝试在调试时使用它时,您看不到任何类型的Internet页面或任何内容.
有人可以帮忙吗?
I have tried to put a WebBrowser into C# WPF Application however when I attempt to use it when debugging you cannot see any type of internet page or anything.
Can anyone help?
推荐答案
你好,
这很简单,或者我在您的问题中遗漏了一些东西...
在xaml中:
Hello,
It''s fairly simple or I am missing something in your question...
In the xaml:
<WebBrowser x:Name="webBrowser">
</WebBrowser>
并导航到网页:
and to navigate to a webpage:
webBrowser.Navigate(new Uri("http://www.google.com"));
Valery.
Valery.
这将帮助某人添加浏览器;但是,请注意:如果要合并浏览器,则不能有透明窗口. [ ^ ]
这篇关于如何将浏览器放在WPF C#应用程序中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文