Why doesn’t it work?
i got this
protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
{
base.OnNavigatedTo(e);
RequestAsync( new Uri(teamsite),
(html, exc) => {
if (exc == null) {
m_doc = new HtmlDocument();
Dispatcher.BeginInvoke(() => m_doc.LoadHtml(html));
xpathList.Items.Add(html);
}
else {
// handle exception appropriately
}
}
);
}
public void test()
{
this.OnNavigatedTo(NavigationEventArgs e)
}
is there a way i can jump form public void test() to
protected override void OnNavigatedTo(NavigationEventArgs e)
?
You cannot make the method call look like a method declaration. You have to supply the argument. Fix: