开发者

Java like Window Navigation in WPF

开发者 https://www.devze.com 2023-03-16 19:51 出处:网络
I am a Java developer, and for user interaction I create a universal JFrame and has a JPanel container 开发者_运维百科in it, and I swap that container with the other panels I created.

I am a Java developer, and for user interaction I create a universal JFrame and has a JPanel container 开发者_运维百科in it, and I swap that container with the other panels I created.

I started to develop WPF applications but I cannot find how this can be done. All I found that there are Page and UserControl but I could not understand the difference and how my task can be achieved. I cannot find good tutorials and I cannot understand how to search it in Google.

Any good info or tutorial would be appreciated.


You can use ContentControl for that purpose. You can set its Content property to any other control and it will show where the ContentControl is placed.

Alternatively, you can use MVVM and set the Content to a ViewModel, while providing a view in a DataTemplate.

0

精彩评论

暂无评论...
验证码 换一张
取 消