我正在尝试添加这些代码:
public partial class My_SyS : Form
{
List<Uri> HistoryStack;
int HistoryStack_Index;
bool fromHistory;
public Sisi_Start()
{
InitializeComponent();
HistoryStack = new List<Uri>();
HistoryStack_Index = 0;
fromHistory = false;
webBrowser_main.Navigated += new EventHandler<System.Windows.Navigation.NavigationEventArgs>(webBrowser_main_Navigated);
updateNavButtons();
}
....
这是webBrowser_main_Navigated
事件:
private void webBrowser_main_Navigated(object sender, System.Windows.Navigation.NavigationEventArgs e)
{
}
我收到以下错误:
The type or namespace name 'Navigation' does not exist in the namespace 'System.Windows' (are you missing an assembly reference?)
我应该使用哪个程序集作为参考?
在 PresentationFramework (in PresentationFramework.dll) 程序集中添加对System.Windows.Navigation
的引用