Replies: 3 comments 2 replies
-
This is to update that I was able to do this using the following line of code OrderDetailsPage orderDetailsPage = new OrderDetailsPage(new ViewModels.OrderDetailsViewModel()); Now, I want to pass the data from the source page to the destination page. Also, needs to change the title of the page to the newly navigated page. |
Beta Was this translation helpful? Give feedback.
-
If you are using a singleton take a look on this, maybe you need to get service in right way .. App.GetService().Navigate(typeof(DashboardPage)); |
Beta Was this translation helpful? Give feedback.
-
In latest WpfUi, you can : App.GetRequiredService<INavigationService>().Navigate(typeof(OrderPage)); |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have made a new <ui: UiPage> OrderDetailsPage, but that page is not in the Left Navigation View, I want to load that page with click of a button, How can I do that?
I have tried
NavigationService.Navigate(typeof(Views.Pages.OrderDetailsPage));
But it does not navigate me to the page.
While using
Uri uri = new Uri(@"OrderDetailsPage.xaml", UriKind.Relative);
this.NavigationService.Navigate(uri);
this gives me an object reference null or the resource not found error.
Please help.
Beta Was this translation helpful? Give feedback.
All reactions