具有多个页面或选项卡的 Silverlight 数据表单

发布于 2024-10-08 05:09:39 字数 399 浏览 0 评论 0原文

我正在考虑第一次使用 Silverlight DataForm 来简化数据库记录的添加/编辑/查看。

然而,我想要显示的数据中的字段数量肯定会导致滚动条。现在,如果可以的话,我不是特别喜欢使用滚动条,我的用户也不是,所以我更喜欢对字段组进行分类并将它们放在不同的页面上(通常是标有每个类别的选项卡)。例如,第一个选项卡上的“个人”用于姓名、电子邮件等。另一个选项卡上的“工作”用于工作详细信息,例如工作地点、职位等。

是否有一种简单的方法可以使 DataForm 创建页面。我认为我需要为 ItemsSource 创建一个 DataTemplate。如果是这样,我只使用 TextBlock 完成了简单的 DataTemplates,并且我不确定跨选项卡页拆分字段并指定哪些字段位于哪个选项卡页上的复杂性是否可能。

任何指示将不胜感激。

I am looking at using the Silverlight DataForm for the first time to simplify Add/Edit/View of database records.

However the number of fields in the data I want to show will definitely result in a scrollbar. Now, I don't particularly like to use scrollbars if I can help it and neither do my users so I prefer to categorize groups of fields and put them on different pages (usually tabs labelled with each category). For example, 'Personal' on the first tab for name, e-mail etc. "Job" on another tab for job details such as work location, job title etc.

Is there a simple way to make the DataForm create pages. I presume that I need to create a DataTemplate for the ItemsSource. If so I have only done simple DataTemplates with TextBlocks and I am not sure if the complexity of splitting fields across Tab pages and specifying which fields are on which tab page is possible.

Any pointers would be greatly appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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