混合 winForm/wpf 应用程序中的 ReactiveUI
我有这个 winForm 应用程序,我们将使用 WPF 重写一些表单。所以到目前为止我的计划是创建 wpf 用户控件并将它们添加到经典 winform 中。到目前为止,一切都很好。
现在考虑使用 MVVM 框架让生活变得更轻松,我尝试了 Caliburn 和 ReactiveUI。在这种情况下,Caliburn 并不那么容易使用,因为它需要在 wpf 应用程序中的应用程序级别进行初始化。这同样适用于 ReactiveUI 还是我可以让它与几个 wpf 控件一起使用?
I have this winForm applications and we are about to rewrite some of the forms with WPF. So my plan so far is to create wpf user controls and add them into classic winforms. So far so good.
Now looking at using an MVVM frame work to make life easier and I cam across Caliburn and ReactiveUI. Caliburn in this scenario is not so easy to use as it needs to be initialised at an application level in a wpf application. Does the same apply to ReactiveUI or can I make it work with a couple of wpf controls?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
默认情况下,ReactiveUI 不需要在应用程序级别初始化,它应该可以很好地适应您的场景。如果没有,请务必 ping 邮件列表并让我知道!
ReactiveUI doesn't need to be initialized at the app level by default, it should work fine with your scenario. If it doesn't, make sure to ping the mailing list and let me know about it!
对于将来遇到这个问题的其他人,Caliburn.Micro 现在支持从任何地方进行初始化(从版本 1.1 开始)。请参阅此讨论帖。
For anyone else coming to this question in the future, Caliburn.Micro now has support for initialisation from anywhere (from version 1.1). See this discussion thread.