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
精彩评论