This is a migrated thread and some comments may be shown as answers.

RadPhoneApplicationFrame does not work with NonLinearNavigationService

9 Answers 86 Views
PhoneApplicationFrame
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
runtastic
Top achievements
Rank 1
runtastic asked on 07 Feb 2011, 05:40 PM
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]   

9 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 07 Feb 2011, 05:41 PM
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>>
0
runtastic
Top achievements
Rank 1
answered on 10 Feb 2011, 11:23 AM
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?
0
Valentin.Stoychev
Telerik team
answered on 10 Feb 2011, 02:56 PM
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>>
0
runtastic
Top achievements
Rank 1
answered on 10 Feb 2011, 05:54 PM
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
0
Valentin.Stoychev
Telerik team
answered on 17 Feb 2011, 09:50 AM
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>>
0
runtastic
Top achievements
Rank 1
answered on 17 Feb 2011, 02:12 PM
Thanks!

is there a time frame when you will release this fix? And is there a workaround for the time being?
0
Valentin.Stoychev
Telerik team
answered on 18 Feb 2011, 08:40 AM
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>>
0
Valentin.Stoychev
Telerik team
answered on 24 Feb 2011, 05:19 PM
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>>
0
runtastic
Top achievements
Rank 1
answered on 25 Feb 2011, 11:21 AM
Thx for the good news!
Tags
PhoneApplicationFrame
Asked by
runtastic
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
runtastic
Top achievements
Rank 1
Share this question
or