使用 MVVM 从数据库动态创建复选框
如何使用 MVVM 模式在运行时根据数据库值创建动态复选框。我已将所有表列设置为 get;set;模型中的属性。但不知道如何使用 MVVM 创建复选框,在哪里放置什么意味着在哪里放置数据库连接和函数,以及如何在 xaml 和 viewmodel 中绑定动态创建的复选框?
请建议?
谢谢
How to create dynamic checkboxes at run time from the databases values using MVVM pattern. I have set all the table columns as get;set; properties in Model. But not getting how to create the checkboxes using MVVM and where to put what means where to put database connections and functions for that and how to bind the dynamically created checkboxes in xaml and in viewmodel?
Kindly Suggest?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论