【发布时间】:2014-09-08 13:14:30
【问题描述】:
所以在 WP7 和 WP8 中,我在 Page2 中执行此操作以了解我是否来自 Page1:
protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
{
base.OnNavigatedTo(e);
var lastPage = NavigationService.BackStack.FirstOrDefault();
if (null != lastPage && true == lastPage.Source.ToString().Contains("Page1.xaml"))
{
}
}
在 WP8.1 中做什么?
【问题讨论】:
标签: c# windows xaml windows-phone-8.1