新应用程序需要 WPF 设计理念
我必须构建几个具有许多可编辑字段的 WPF 屏幕。有一个单独的业务对象(视图模型),我可以用它来创建视图以及一组规则 对于每个屏幕,我都会得到一个适用于其中某些字段的规则列表,它定义了诸如是否可编辑之类的内容,默认值,它应该显示的值列表。 。
首先,我只是想通过数据模板化该视图的相应业务对象来生成视图。我需要一些关于如何验证这些规则或将这些规则应用于业务对象中的属性的想法。希望我清楚我上面提到的内容。
我正在寻找一些设计理念、WPF OOB 功能(如果有)、常见模式或框架,用于此类场景。任何这样的想法都会有所帮助。
谢谢,玛尼
I have to build several WPF screens which has many editable fields. There is a separate business object (view model) that I get to create the views along with the set of rules For every screen, I get a list of rules which apply to some of those fields, which defines things like if it is editable, default value, list of values it shud display. .
Firstly,I am just thinking to generate the views by data templating the corresponding business object for that view. I need some ideas on how to validate these rules or apply these kind of rules to the properties in the bussiness object. Hopefully, I am clear what I have mentioned above.
I am looking for some design ideas, WPF OOB features if any, common paterns or frameworks, for scenarios such as these. Any such idea would be of help.
Thanks, Mani
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看移植到 WPF 的 Silverlight DataForm
Have a look at the Silverlight DataForm that was ported to WPF