xaml代码
xmlns= "http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x= "http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d= "http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc= "http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable= "d"
d:DesignHeight= "300" d:DesignWidth= "400">
< Grid x:Name= "LayoutRoot" Background= "White">
< Button Content= "browser" Height= "23" HorizontalAlignment= "Left"
Margin= "128,12,0" Name= "button2" VerticalAlignment= "Top"
Width= "75" Click= "button2_Click" />
< /Grid>
< /UserControl>
cs代码
private void button2_Click(object sender, RoutedEventArgs e)
{
System.Windows.browser.browser@R_642_4045@ion browser = HtmlPage.browser@R_642_4045@ion;
Version ver = browser.browserVersion;
int buld= ver.Build;//浏览器版本内部编号
int minor = ver.Minor;//浏览器版本次要编号
int major = ver.Major;//浏览器版本主要编号
bool enableCookie = browser.CookiesEnabled;//浏览器是否支持Cookie
string browserName = browser.Name;//浏览器名称
string platform = browser.Platform;//操作系统名称
string productName = browser.ProductName;//浏览器产品名称
string productVersion = browser.ProductVersion;//浏览器产品版号
string userAgent = browser.UserAgent;//用户代理字符串
//浏览显示 请自写 也可以用vs断点查看 谢谢 }本文来自mldark的博客,原文地址:http://hi.baidu.com/mldark/blog/item/3c6c0c0bd642b728b0351dfb.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。