在PRISM中按功能区按钮从各个模块加载视图 [英] Loading views from various modules upon pressing Ribbon buttons in PRISM

查看:152
本文介绍了在PRISM中按功能区按钮从各个模块加载视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用PRISM开发WPF应用程序.我有两个区域:

  1. 查看区(将加载来自不同模块的视图,但一次只能加载一个视图) )

我有用于Ribbon和视图的独立模块程序集(即CustomerModule,OrderModule等).我的功能区具有按钮,这些按钮应从模块加载视图,即按客户"按钮应从"CustomerModule"加载特定视图, 按下"OrderModule"应该从"OrderModule"等加载特定视图.
I have separate module assemblies for Ribbon and views (i.e. CustomerModule, OrderModule, etc.). My ribbon has got buttons which should load view from modules i.e. pressing "Customer" button should load the specific view from "CustomerModule", pressing "OrderModule" should load the specific view from "OrderModule", etc.

推荐答案

您好,KrunalC,

Hi KrunalC,

 欢迎使用MSDN论坛支持.

  Welcome to MSDN Forum Support.

 您可以查看 使用Prism 4创建视图切换应用程序.

  You could take a look at Creating View-Switching Applications with Prism 4  .

  • 应用程序顶部的功能区;和
  • Outlook样式的任务按钮"位于左下角.


这篇关于在PRISM中按功能区按钮从各个模块加载视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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