Add reference to System.Windows.Navigation
in the PresentationFramework (in PresentationFramework.dll) Assembly
What is "System.Windows.Navigation" assembly in Windows Form Applications
-
15-10-2022 - |
Question
i am trying to add these codes :
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();
}
....
and here is webBrowser_main_Navigated
event :
private void webBrowser_main_Navigated(object sender, System.Windows.Navigation.NavigationEventArgs e)
{
}
i got the error below :
The type or namespace name 'Navigation' does not exist in the namespace 'System.Windows' (are you missing an assembly reference?)
which assembly should i use for the reference?
La solution
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow