阅读背景:

如何使ListView单元格从列标题中继承它的文本对齐?

来源:互联网 

I am using a ListView with a GridView as the View. I am using a TextBlock in the cell template. I want the text alignment to match the column header - I guess it involves some kind of binding using FindAncestor, but I'm not quite sure how to get this to work. I may end wrapping the text block up in a custom control along with other things and I'd like to include the inheritance behaviour in the custom control so I don't have to keep repeating it.I am using a ListView with a GridView as the Vi




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: