使用棱镜构建动态视图 [英] Building dynamic views with Prism

查看:102
本文介绍了使用棱镜构建动态视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个应用程序,其中所有视图和控件都被动态添加.该应用程序具有单独的通信层,该通信层从服务器获取所有数据以构建控件.我想知道的是,在Prism中该通讯将在哪里进行? 层运行?它应该一直与服务器保持连接,并且必须在所有视图中都可用.

您将如何实现此功能?

最诚挚的问候,

rotoflex

解决方案

您好rotoflex,

要实现此功能,您可以下载Prism项目,其中有两个有关如何实现此目标的示例,一个名为"

".

带Mef的模块化" ,另一个是" 模块化 使用Unity ".

最好的问候


Hi,

I'm trying to create an application where all views and controls are added dynamically. This application has separate communications layer which gets all data from server to build controls. What I'm wondering is that where in Prism would that communications layer run? It should have connection to server open all the time and also it has to be usable from all views. 

How would you implement this feature?

Best regards,

rotoflex

解决方案

Hi rotoflex,

To implement this feature, you could download Prism project, and there are two samples about how to achieve this goal, the one named "

Modularity With Mef", the other is "Modularity With Unity".

Best regards,


这篇关于使用棱镜构建动态视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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