Datagrid 样式帮助 XAML

发布于 2024-12-25 22:53:04 字数 608 浏览 2 评论 0原文

我刚刚学习了如何创建 SampleData 并使用 Blend 将它们放入 Datagrid 中。我还没有找到关于在不使用 WPFToolkit 或 Infragistics 的情况下设计 Datagrid 的好的教程。我已经从中提取了模板和样式,但我不确定从哪里开始侵入样式。

我想创建一个类似于此图像的数据网格 http://blogs.infragistics.com/cfs-filesystemfile.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/kiril_5F00_matev/XamDataGridFilteringSlider.jpg

另外,我希望这样当有人选择一行时,该行将显示一个箭头。有什么好的教程或者代码可以分享吗?对构成 Datagrid 控件的各个部分进行分解肯定会帮助我更好地理解。

谢谢!

I just learned how to create SampleData and place them into a Datagrid using Blend. I havent found good tutorials on styling Datagrid without using WPFToolkit or Infragistics. I have extracted the template and styles from it, but I'm not sure where to even start hacking into the style.

I would like to create a Datagrid similar to this image http://blogs.infragistics.com/cfs-filesystemfile.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/kiril_5F00_matev/XamDataGridFilteringSlider.jpg

Also, I would want to have it so when someone selects a row an arrow will show up for that row. Are there any good tutorials or codes you can share? A break down of the parts that make up the Datagrid control would surely help me understand better.

Thanks!

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

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

发布评论

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

评论(1

没有你我更好 2025-01-01 22:53:04

我一直很喜欢 Jaime Rodriguez 的文章介绍了最基本的 DataGrid 样式

如果您想完全覆盖模板,您可以找到 MSDN 上的默认模板

I've always loved Jaime Rodriguez's article for most basic DataGrid styling

And if you're looking to overwrite the template entirely, you can find the default template on MSDN

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