RadPhoneApplicationFrame does not work with NonLinearNavigationService

10 posts, 0 answers
  1. runtastic
    runtastic avatar
    7 posts
    Member since:
    Jan 2011

    Posted 07 Feb 2011 Link to this post

    Hi,

    I'm using RadPhoneApplicationFrame together with NonLinearNavigationService [1]. It works fine until I'll go to a Page where I already went. The NonLinearNavigationService would then recursively loop back to that page but in doing so I'm getting an navigation failed exception (see Stacktrace below).

    This is the navigation flow:
    Page1 -> Page2 -> Page3 -> Page 1

    NonLinearNavigationService would then loop back the navigation stack and just leave Page1 on the Stack and this is where the exception is raised.

    I'm not sure who's fault it is but I really want to use both classes in my App. I hope you guys could fix this.

    Thanks in advance,
    Buju

    [1] http://windowsteamblog.com/windows_phone/b/wpdev/archive/2010/12/13/solving-circular-navigation-in-windows-phone-silverlight-applications.aspx

    Stacktrace:
    It's an System.InvalidOperationException("No Fragment support right now") exception I'm getting in RootFrame_NavigationFailed().

    testAppWP7.dll!testAppWP7.App.RootFrame_NavigationFailed(object sender, System.Windows.Navigation.NavigationFailedEventArgs e) Line 96
    Microsoft.Phone.dll!System.Windows.Navigation.NavigationService.RaiseNavigationFailed(System.Uri uri, System.Exception exception) + 0x52 bytes   
    Microsoft.Phone.dll!System.Windows.Navigation.NavigationService.Navigate(System.Uri source) + 0x1bf bytes   
    Microsoft.Phone.dll!System.Windows.Controls.Frame.Navigate(System.Uri source) + 0xf bytes   
    Telerik.Windows.Controls.Primitives.dll!Telerik.Windows.Controls.RadPhoneApplicationFrame.TransitionControl_OldContentTransitionEnded(object sender, System.EventArgs e) + 0x54 bytes   
    Telerik.Windows.Controls.Primitives.dll!Telerik.Windows.Controls.RadTransitionControl.OnOldContentTransitionEnded() + 0x29 bytes   
    Telerik.Windows.Controls.Primitives.dll!Telerik.Windows.Controls.RadTransitionControl.OldContentAnimation_Ended(object sender, System.EventArgs e) + 0x1d bytes   
    Telerik.Windows.Core.dll!Telerik.Windows.Controls.RadAnimation.OnStopped(Telerik.Windows.Controls.Animation.PlayAnimationInfo info) + 0x31 bytes   
    Telerik.Windows.Core.dll!Telerik.Windows.Controls.RadAnimationManager.StopStoryboard(Telerik.Windows.Controls.Animation.PlayAnimationInfo info) + 0x23 bytes   
    Telerik.Windows.Core.dll!Telerik.Windows.Controls.RadAnimationManager.OnStoryboardCompleted(object sender, System.EventArgs e) + 0x1e bytes   
    System.Windows.dll!System.Windows.CoreInvokeHandler.InvokeEventHandler(int typeIndex, System.Delegate handlerDelegate, object sender, object args) + 0x163 bytes   
    System.Windows.dll!MS.Internal.JoltHelper.FireEvent(System.IntPtr unmanagedObj, System.IntPtr unmanagedObjArgs, int argsTypeIndex, string eventName) + 0x161 bytes   
    [External Code]   
  2. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 07 Feb 2011 Link to this post

    Hi Buju,

    We are aware of the issue. It should be fixed with the Beta1 release that we published last week. If you are still seeing it with the latest binaries - please let us know.

    Kind regards,
    Valentin.Stoychev
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  3. DevCraft banner
  4. runtastic
    runtastic avatar
    7 posts
    Member since:
    Jan 2011

    Posted 10 Feb 2011 Link to this post

    Thanks a lot for the awesome update!

    Yes, it works now without throwing any exceptions. But there is still an issue though.

    If NonLinearNavigationService is recursively going back the stack, the user can see flickering of pages which is not a good UX. I thought NonLinearNavigationService will set the alpha of the RootFrame to zero when navigating back to prevent this flickering, but with RadPhoneApplicationFrame this is not the case.

    Any thoughts about how to fix the flickering?
  5. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 10 Feb 2011 Link to this post

    Hi Buju,

    We could not reproduce the flick. I created a sample project with the scenario you describe. Can you help us see what we are missing.

    Thanks in advance for the cooperation!

    All the best,
    Valentin.Stoychev
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  6. runtastic
    runtastic avatar
    7 posts
    Member since:
    Jan 2011

    Posted 10 Feb 2011 Link to this post

    Hi,

    I looked into your attached project.

    In Page2.xaml.cs:
    instead of navigating back to Page1, try to navigate back to MainPage.xaml

    Change from:
    NavigationService.Navigate(new Uri("/Page1.xaml"UriKind.Relative));
    To:
    NavigationService.Navigate(new Uri("/MainPage.xaml"UriKind.Relative));
    If you change it to MainPage.xaml then you should see the flickering.

    Hope this helps,
    Buju
  7. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 17 Feb 2011 Link to this post

    Hi Buju,

    We managed to reproduce the problem. Thanks for the additional clarifications! I'm adding 1000 Telerik points to your account. We will do our best to have this fixed for the official release.

    Greetings,
    Valentin.Stoychev
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  8. runtastic
    runtastic avatar
    7 posts
    Member since:
    Jan 2011

    Posted 17 Feb 2011 Link to this post

    Thanks!

    is there a time frame when you will release this fix? And is there a workaround for the time being?
  9. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 18 Feb 2011 Link to this post

    Hi Buju,

    There is no workaround for that. Our next release is scheduled for the beginning of March.

    Regards,
    Valentin.Stoychev
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  10. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 24 Feb 2011 Link to this post

    Hello Buju,

    I'm glad to tell you that the WP7 page transitions are now working with the NonLinearNavigationService without problems.

    The fix will be available in the next beta release, which is scheduled for next week.

    Regards,
    Valentin.Stoychev
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  11. runtastic
    runtastic avatar
    7 posts
    Member since:
    Jan 2011

    Posted 25 Feb 2011 Link to this post

    Thx for the good news!
Back to Top
DevCraft banner