简体   繁体   English

使用Prism MVVM模拟对话框和弹出窗口?

[英]Simulating dialogs and popup windows with Prism MVVM?

I'm considering migrating a MVVM project to the Prism framework and would like to know if Prism will easily support "simulated" dialog windows and popups, each potentially with it's own regions. 我正在考虑将MVVM项目迁移到Prism框架,并想知道Prism是否将轻松支持“模拟”对话框窗口和弹出窗口,每个窗口和弹出窗口都可能具有自己的区域。 By simulated, I mean a control on the main shell that has the appearance of a dialog or pop-up, without being an actual window. 所谓模拟,是指主外壳上的控件具有对话框或弹出窗口的外观,而不是实际的窗口。

Thanks! 谢谢!

Yes, in fact it works very well (your approach is exactly what we do). 是的,实际上,它的效果很好(您的方法正是我们的工作方式)。

Just one thing, Make sure that your register your region with the correct IRegionManager, we have had a few issues where it would be registered to the wrong IRegionManager. 只是一件事,请确保您使用正确的IRegionManager注册您的区域,我们在将区域注册到错误的IRegionManager时遇到了一些问题。

if you need any examples / guidance then just give me a shout! 如果您需要任何示例/指导,请给我喊!

cheers. 干杯。 ste.

I think it's work well as simple silverlight. 我认为它像简单的Silverlight一样运作良好。 So no worry about simulated dialog and Popups. 因此,不必担心模拟对话框和弹出窗口。 It is open same as Simple MVVM. 它与简单MVVM一样打开。

Also good idea to move into PRISM. 进入PRISM也是一个好主意。

Ask me if you have any query. 问我是否有任何疑问。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM