locked
How do i navigate to a Frame other than the main page window? RRS feed

  • 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