开发者

WPF TableColumn width

I have a flow开发者_如何转开发document where I add a table programmatically. This works fine. But like in word, I want to be able to resize the column size with the mouse. But I can't figure how to do this. Is it possible add this feature to a table? If its possible, is there an example how to do this?


I believe you cannot do that.

ContentElements (Tables, Paragraphs, etc.) are not designed to subscribe to any height/width specifications, their content and container determine their size.

But you may play tricks on Margin and Padding binding to go around that. Or there is a similar SO question that may help: WPF Table Column Sizes

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜