Pourquoi cela ne fonctionne-t-il pas?Appel à OnNavigatedTo (NavigationEventArgs e) à partir d'une autre méthode
J'ai eu ce
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)
}
est-il un moyen que je peux sauter forme public void test()
à
protected override void OnNavigatedTo(NavigationEventArgs e)
?
qui devrait fonctionner - ce qui est; travail t - est-il pas la compilation? Quelle est l'erreur de compilation que vous obtenez? –
Que * exactement * ne fonctionne pas? – abatishchev