SketchFlow 中的 DataGrid 可混合性

发布于 2024-09-24 21:45:33 字数 195 浏览 0 评论 0原文

我试图弄清楚如何在页面上的 Blend/SketchFlow 中显示数据网格的两种不同状态。我想在页面加载时显示数据网格为空,然后将其更改为在按下搜索键时使用数据绑定与示例数据显示结果数据。

我制作了数据网格的两份副本 - 一份是空的,一份是数据的。我可以根据两种状态将其中一个与另一个重叠。这是显示此行为的最佳方式,还是有更好的方式来更改项目绑定或其他内容。

I am trying to figure out how to show two different states of a datagrid in Blend/SketchFlow on a page. I would like to show the datagrid empty on load of the page and then change it to show results data using databinding with sample data when the Search key is pressed.

I have made two copies of the datagrid - one empty and one with data. I can over lay one with the other based on two states. Is this the best way to show this behavior, or is there some better way to change the Items binding or something.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

Hello爱情风 2024-10-01 21:45:33

与很多事情一样,这取决于您的需求和目标。

如果这是一个模型/原型,那么您所做的可能是实现目标的最简单/最快的途径。如果您需要使其更适合生产,您可能应该有一个数据网格并更改其数据上下文或数据源。

As with so many things, it depends on your needs and goals.

If this is a mockup/prototype, what you did it probably the simplest/fastest route to your goal. If you need to make it more production ready, you should probably have a single datagrid and change its datacontext or data source.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文