How to navigate from window to page in wpf?



How to navigate from window to page in wpf?..

Answer / Tariq Anwar

In WPF, you can navigate between pages using NavigationService. You can access the NavigationService from the Page's constructor or from an event handler (e.g., Button_Click). Here is a simple example:

```csharp
this.NavigationService.Navigate(typeof(DestinationPage));
```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More WPF Interview Questions

What is xmlns in xaml file?

1 Answers  


Which namespace provide classes for integration with wpf and win32?

1 Answers  


How to create exe file for wpf application in visual studio 2017?

1 Answers  


What is the way to determine if a freezable object is frozen?

1 Answers  


What are the types of common file dialogs that wpf supports?

1 Answers  


Can you explain wpf command with an example?

1 Answers  


What is difference between Silverlight and WPF?

1 Answers   MindCracker,


What does BAML mean in WPF?

1 Answers  


How you would go about writing your own button style?

1 Answers  


Which is the Parent class Control class in WPF?

1 Answers   Sans Pareil IT Services,


What is prism?

1 Answers  


What are templates and its type in wpf?

1 Answers  


Categories