0

I have a flowdocument 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?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
TimTiTim
  • 145
  • 3
  • 7

1 Answers1

0

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

Community
  • 1
  • 1
KMC
  • 19,548
  • 58
  • 164
  • 253