I want to develop a desktop application based on WPF. How do I navigate via C# code from one page to another or from one page in a window?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
There is simple example of navigation by using Data Templates and ContentControl
Take a look at the following links below - these will give you a better understanding of navigating through a WPF application providing examples and sample apps.
How to Build, Manage and Navigate the User Interface of a WPF Application
Simple Navigation
More advanced Navigation
A really easy way to navigate through an application I find is that if you add a
Frame
within aWindow
and then for your other corresponding pages, usePage
and you need to do in the code behind of your window is as follows;Hope these links help!