Modern UI how to go to another page from another link

后端 未结 2 1629
不知归路
不知归路 2021-01-07 03:16

I am currently using Modern UI from CodePlex. It is great and easy to use but there are some classes and events that I am not familiar with. Example: I have two GroupLinks n

2条回答
  •  广开言路
    2021-01-07 03:41

    For anyone that may be struggling with this, set this in your MainWindow.cs constructor:

            Application.Current.MainWindow = this;
    

    Then in the part of your application where you want to navigate to a page, run this:

            IInputElement target = NavigationHelper.FindFrame("_top", Application.Current.MainWindow);
            NavigationCommands.GoToPage.Execute("/NameOfYourPage.xaml", target);
    

提交回复
热议问题