[英]Caliburn.micro with multiple ViewModels
I am building an app that can host multiple widgets. 我正在构建一个可以托管多个小部件的应用程序。 The user will be able to add and remove widgets whenever he chooses.
用户可以随时选择添加和删除小部件。 How do I compose this in Caliburn.micro since I don't know the number of widgets before hand?
由于我不知道之前的小部件数量,该如何在Caliburn.micro中编写此代码?
All widgets will be active at the same time. 所有小部件将同时处于活动状态。
Any ideas where I should begin with this? 有什么想法应该从这里开始吗? I've done several Caliburn.micro apps but none using any form of composition before.
我已经完成了多个Caliburn.micro应用程序,但之前都没有使用任何形式的组合。
You can use Conductor<T>.Collection.AllActive
for this purpose. 为此,可以使用
Conductor<T>.Collection.AllActive
。
See Screens, Conductors and Composition for details. 有关详细信息,请参见屏蔽,导体和组成 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.