Answered by:
How do i navigate to a Frame other than the main page window?

Question
-
I want to navigate to pages within a Frame other than the main window frame but I can't see any way of doing this other than creating a new instance of the FrameNavigationService class and setting the IFrameFacade to the Frame I want to navigate within.Monday, December 2, 2013 1:31 PM
Answers
-
OK. I'm not sure if this is relevant but you could call the Navigate method from anywhere in your App by accessing the current frame using Window.Current.Content. For example, the following code navigates to a page MyPage from anywhere in your App including an event handler for a button command:
((Frame)Window.Current.Content).Navigate(MyPage);
MyPage is the type of your page.
Wiki: wbswiki.com
Website: www.wisenheimerbrainstorm.com- Marked as answer by Bifrost Ltd Wednesday, December 11, 2013 5:45 PM
Tuesday, December 3, 2013 6:44 PM
All replies
-
Would the Navigate method work for you?
this.Frame.Navigate(typeof(YourPageType), YourParameters);
Leszek
Wiki: wbswiki.com
Website: www.wisenheimerbrainstorm.com- Proposed as answer by Bilaal John S Tuesday, December 3, 2013 4:32 AM
Monday, December 2, 2013 3:24 PM -
Thanks Leszek, that was helpful but I've already done it this way. I want to use FrameNavigationService from a Button Command.Monday, December 2, 2013 10:57 PM
-
I found it is a class in MVVM WPF.
Maybe you can try the MVVM in Windows Store
http://msdn.microsoft.com/en-us/library/windows/apps/xx130657.aspx
Or other project
Tuesday, December 3, 2013 9:23 AM -
OK. I'm not sure if this is relevant but you could call the Navigate method from anywhere in your App by accessing the current frame using Window.Current.Content. For example, the following code navigates to a page MyPage from anywhere in your App including an event handler for a button command:
((Frame)Window.Current.Content).Navigate(MyPage);
MyPage is the type of your page.
Wiki: wbswiki.com
Website: www.wisenheimerbrainstorm.com- Marked as answer by Bifrost Ltd Wednesday, December 11, 2013 5:45 PM
Tuesday, December 3, 2013 6:44 PM