Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 Silverlight 4 中将数据网格的方向更改为水平。换句话说,我想在左侧显示标题,在右侧显示与它对应的值。
我该怎么做?
DataGrid 不支持水平项目滚动。
一个非常疯狂的想法是使用工具包LayoutTransformer将整个网格旋转 90 度,然后使用 a 将所有标题和单元格模板化LayoutTransfomer以将其内容旋转回来。一个问题(可能是很多问题,如果可能的话)是滚动条会出现在顶部而不是底部。您也许可以通过进一步的模板来解决这个问题。
LayoutTransformer
LayoutTransfomer