如何使用C#WPF Grid和ScrollViewer修复行/列标题 [英] How To Fix Row / Column Header with C# WPF Grid and ScrollViewer
本文介绍了如何使用C#WPF Grid和ScrollViewer修复行/列标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好!
目前我正在编写一个程序,在那里我可以显示行中的汽车件
和汽车作为列(在网格中),它工作正常。
问题现在当我用ScrollViewer滚动时你看不到标题列/行
了。
我想要像Excel一样的行为(德语:Fenster Fixieren,英语:Freeze Panes)。
有人可以帮帮我吗?
问候
Hello!
Currently I'm writing a programm, where I can show the pieces of cars in rows
and the cars as columns (in a Grid), which works fine.
The problem is now when I scroll with ScrollViewer you don't see the Header-Columns / Rows
anymore.
I want a Behaviour like in Excel (German: "Fenster Fixieren", English: "Freeze Panes").
Can anybody help me?
Greetings
推荐答案
检查此链接,希望它能解决您的目的。
http://blogs.msdn.com/b/vinsibal/archive/2008/10/31/wpf- datagrid-frozen-row-sample.aspx [ ^ ]
Check this Link, hope it solves your purpose.
http://blogs.msdn.com/b/vinsibal/archive/2008/10/31/wpf-datagrid-frozen-row-sample.aspx[^]
这篇关于如何使用C#WPF Grid和ScrollViewer修复行/列标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文