Navigation to new page fails RRS feed

  • Question

  • This is somewhat specific, but I think it is a bug, so the real question is if there is a workaround. Here is the code:

    protected override async void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); if (condtionMet) { try { Frame frm = Window.Current.Content as Frame; if (frm == null) frm = new Windows.UI.Xaml.Controls.Frame(); Window.Current.Content = frm; frm.Navigate(typeof(ErrorInfo)); Window.Current.Activate(); return; } catch { } } //some more code here }

    I use this on Receive page of ShareTarget. The result is that sometimes error page is shown, and sometimes not for the same source target, but exception is never caught as code after return is never executed. Any ideas except to have more controls on the receive page and show/hide them when required, or to check condition onShareTargetActivated and then load proper page from there?

    • Edited by ivan.icin Saturday, April 5, 2014 2:18 PM
    Saturday, April 5, 2014 1:58 PM


All replies