使用 MVVM 从数据库动态创建复选框

发布于 2024-09-07 19:05:28 字数 166 浏览 0 评论 0原文

如何使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文