wpf获取webbroswer的两个方法
2021-02-12 13:15
标签:uri str headers get nav sage and dev can wpf获取webbroswer的两个方法 标签:uri str headers get nav sage and dev can 原文地址:https://www.cnblogs.com/romanticcrystal/p/8473336.html//跳转前的地址
private void WebBrowser_BeforeNavigate2(object pDisp, ref object URL, ref object Flags, ref object TargetFrameName, ref object PostData, ref object Headers, ref bool Cancel)
{
String strUri = (URL == null ? "Null" : URL.ToString());
MessageBox.Show("post" + strUri);
}
XAML代码:
string url=e.Uri.ToString();//这里是broswer的url
}
文章标题:wpf获取webbroswer的两个方法
文章链接:http://soscw.com/index.php/essay/54451.html