Caliburn.Micro 将如何处理在 Silverlight 5 中设置断点的问题
我们已经使用 MVVMLight 一段时间了,并且正在考虑改用 Caliburn.Micro。当我们寻找时,我们的设计人员抱怨说,因为混合在依赖注入方面做得不好。
对这一点的进一步思考让我感到好奇。 Caliburn.Micro 根本不使用绑定,而 Silverlight 5 允许在绑定上设置断点。这是我们使用 Caliburn.Micro 无法得到的东西吗?对此有何想法?
We've been using MVVMLight for a while now, and we were looking into switching to using Caliburn.Micro. While we were looking, our Design guy complained because blend doesn't do a good job at Dependency Injection.
Further thoughts on this made me wonder. Caliburn.Micro doesn't use bindings at all, and Silverlight 5 allows for breakpoints on bindings. Is that something that we would just not get using Caliburn.Micro? What are the thoughts on this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
CM 使用绑定,但根据控件名称和 ViewModel 的属性(约定优于配置)动态创建它们。如果您想调试绑定,则必须手动设置它们(CM 也支持 - 它不会覆盖您的绑定)。
C.M uses bindings but creates them on the fly according to the control Name and ViewModel's properties (convention over configuration). If you want to debug bindings, you will have to set them manually (which is also supported by C.M - it will not override your bindings).