【发布时间】:2018-12-03 21:37:12
【问题描述】:
此事件是否有任何替代或解决方法(例如中断)?如果我尝试从Form A 导航到Form B,然后返回Form B,我的事件(这是一个数据库检索方法)会触发两次。
代码:
protected override void OnNavigatedTo(NavigationEventArgs e)
{
EQList.ItemsSource = App.CALAMITY_VIEW_MODEL.GetEarthquakes();
cbCalamities.ItemsSource = App.CALAMITY_VIEW_MODEL.GetEarthquakes();
}
【问题讨论】: