【问题标题】:What is "System.Windows.Navigation" assembly in Windows Form Applications什么是 Windows 窗体应用程序中的“System.Windows.Navigation”程序集
【发布时间】:2014-02-23 11:07:31
【问题描述】:

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

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?)

我应该使用哪个程序集作为参考?

【问题讨论】:

    标签: c# .net-4.0 navigation browser windows-applications


    【解决方案1】:

    PresentationFramework(在PresentationFramework.dll中)Assembly中添加对System.Windows.Navigation的引用

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-07-29
      • 1970-01-01
      • 2014-01-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多