在 VS XAML 编辑器中查看数据绑定列表控件的技巧

发布于 2024-08-23 15:54:38 字数 91 浏览 0 评论 0原文

当 ItemSource 属性进行数据绑定时,是否有任何方法可以查看控件在 XAML 设计器中的外观?我想在不实际运行应用程序的情况下以某种方式看看它在设计器中的样子。

Is there any way to see what a control will look like in the XAML designer when it's ItemSource property is databound? I want to see what it looks like in the designer somehow without actually running the application.

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

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

发布评论

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

评论(1

栖迟 2024-08-30 15:54:38

这是 Karl Shifflett 撰写的一篇好文章,解释了如何显示设计时数据:
http://karlshifflett.wordpress.com/2008/10/11/viewing-design-time-data-in-visual-studio-2008-cider-designer-in-wpf-and -silverlight-projects/

WPF 4 将提供设计时数据的本机支持

Here's a good article by Karl Shifflett that explains how to display design-time data :
http://karlshifflett.wordpress.com/2008/10/11/viewing-design-time-data-in-visual-studio-2008-cider-designer-in-wpf-and-silverlight-projects/

WPF 4 will come with native support of design-time data

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