SketchFlow 中的 DataGrid 可混合性
我试图弄清楚如何在页面上的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
与很多事情一样,这取决于您的需求和目标。
如果这是一个模型/原型,那么您所做的可能是实现目标的最简单/最快的途径。如果您需要使其更适合生产,您可能应该有一个数据网格并更改其数据上下文或数据源。
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.