没有发现 OnActivate 方法被覆盖

No OnActivate method found to be overriden

尝试使用 FileOpenPicker 添加文件选择器,由于我的目标是 Win 8.1,因此未实现选择文件的异步方法,所以我只需要使用 picksinglefileandcontinue 和基于在 "what I read over the Whosebug (don't know to what extent these people are right or wrong)" 上,一旦文件被选中,必须有一个 OnActivated 方法在重新激活应用程序时被触发,但 Visual Studio 声称这种方法根本不会退出。

假设:

public partial class Test: Page {}

基础 class 没有要覆盖的 OnActivate 方法。

既然没有属性到return的文件路径怎么解决?

OnActivated 事件可以在 App.xaml.cs 文件中覆盖,而不是直接在页面(视图)中覆盖:

 protected override void OnActivated(IActivatedEventArgs args)
 {
       base.OnActivated(args);

       //Handle continuation here
 }

HERE是如何处理的示例。