This project is read-only.

Problem to navigate to the previous frame

Oct 8, 2014 at 12:17 PM
Edited Oct 8, 2014 at 12:17 PM
I have an application that contain 2 frame (frame1, frame2)
Frame 2 is displayed when click on "Send" button in the frame 1.
In frame 2 I have a progress bar that describe the progress of sending message.
I would like to go back to frame 1 when the progress bar is 100%
Please find attached my sample code.
Link to the Sample
Oct 15, 2014 at 10:16 PM
Edited Oct 15, 2014 at 10:16 PM
Your sample contains 2 pages (page1 and page2), not two frames. With a single frame navigation is fairly easy in code. In the code behind of the Page2.xaml you could use the following to navigate the parent frame to Page1;
using FirstFloor.ModernUI.Windows.Navigation;

var frame = NavigationHelper.FindFrame(null, this);
frame.Source = NavigationHelper.ToUri("/Content/Page1.xaml");
Oct 16, 2014 at 10:10 PM
Thank you kozw.
This solution works fine.
thank you very much.