Datagrid 样式帮助 XAML
我刚刚学习了如何创建 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我一直很喜欢 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