wpf prism,如何在prism框架中导航/重定向 [英] wpf prism , how to navigation/redirect in prism framework

查看:160
本文介绍了wpf prism,如何在prism框架中导航/重定向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所有视图都需要在shell窗口中显示?



我是wpf prism框架的新手,我非常关心如何在视图之间导航。 />
i意思是,在prism中,我们有一个shell页面,我在shell中定义了一些区域,这意味着shell的布局没有改变,如果我想显示一个视图,它完全不同于在shell中布局,这意味着我不能用视图替换shell中定义的区域,那么我该怎么办?或者我需要更改我的布局,因为所有视图都需要显示在shell页面中。

All views need to be displayed in shell window ?

I am newer for wpf prism framework , i am very confued on how to navigate between views.
i mean, in the prism , we have one shell page and i define some region in the shell , so that mean the layout of shell was not changed , if i want to display one view and it was completely different from layout in shell , and it mean i can not replace region which defined in shell with the view , so what can i do ? Or i need change my layout because all view need to display in shell page.

推荐答案

您始终可以在区域内创建子区域并插入每个区域中的视图适当的这些区域。

要导航,只需删除视图并将另一个视图插入区域/子区域。
You can always create sub-regions inside a region and plug in views in each of these regions as appropriate.
To navigate, just remove a view and plug in another into the region/sub-region.


这篇关于wpf prism,如何在prism框架中导航/重定向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆