什么是 Windows 窗体应用程序中"System.Windows.Navigation"程序集



我正在尝试添加这些代码:

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的引用

相关内容

  • 没有找到相关文章

最新更新