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

Unhandled Error On Navigation

3 Answers 67 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.
Ian
Top achievements
Rank 1
Ian asked on 04 Nov 2011, 02:03 PM
I am using the page transitions of the Windows Phone tools to add some flare to my app.

In order to do this,  App.xaml.cs, I have changed the InitializePhoneApplication() method line as follows:
RootFrame = new RadPhoneApplicationFrame();

However, I am getting the below unhandled exception when I navigate back through the page stack reaching a page that requires a reload of data triggered in OnNavigatedTo. 

System.ArgumentException
Message: The parameter is incorrect
Stack Trace:
   at MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)
   at MS.Internal.XcpImports.MethodPack(IntPtr objectPtr, String methodName, Object[] rawData)
   at MS.Internal.XcpImports.UIElement_TransformToVisual(UIElement element, UIElement visual)
   at System.Windows.UIElement.TransformToVisual(UIElement visual)
   at Telerik.Windows.Controls.RadModalWindow.SetWindowPosition(UIElement relativeElement)
   at Telerik.Windows.Controls.RadWindow.aq()
   at Telerik.Windows.Controls.RadWindow.bd(Object A_0, EventArgs A_1)
   at System.Windows.FrameworkElement.OnLayoutUpdated(Object sender, EventArgs e)
   at MS.Internal.JoltHelper.RaiseEvent(IntPtr target, UInt32 eventId, IntPtr coreEventArgs, UInt32 eventArgsTypeIndex)


My observations:
- If the reload is not performed, the error does not occur. 
- If I change the App.xaml.cs back to RootFrame = new PhoneApplicationFrame(); the error does not occur.

Please help!

Many thanks
Ian

EDIT: I have managed to bypass the error by adding a PageTransitionCompleted event handler to the page in question. The data update is fired from this event handler now (rather than the page's OnNavigatedTo) and seems OK. However, this is not ideal as the previous set of data is visible as the transition is occurring. Therefore any other suggestions are still very welcome! Thanks.

3 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 04 Nov 2011, 05:06 PM
Hello Ian,

 Thank you for writing.
This issue should be fixed in the official Q3 2011 release.

Write again if you have other issues to report.

Best wishes,
Victor
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Ian
Top achievements
Rank 1
answered on 04 Nov 2011, 05:28 PM
Hi Victor,

Thank you for replying.

I am using RadControls_for_WindowsPhone_2011_3_0920_DEV.msi - is this the version you are referring to?

Thanks
Ian
0
Victor
Telerik team
answered on 09 Nov 2011, 03:59 PM
Hi Ian,

 Thank you for writing.
The official release is due next week, the fix is not available in the builds that are currently available for download.

Please write again if you have other questions.

Greetings,
Victor
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
PhoneApplicationFrame
Asked by
Ian
Top achievements
Rank 1
Answers by
Victor
Telerik team
Ian
Top achievements
Rank 1
Share this question
or