Automatic vertical scroll bar in WPF TextBlock?

后端 未结 10 1965
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-07 07:25

I have a TextBlock in WPF. I write many lines to it, far exceeding its vertical height. I expected a vertical scroll bar to appear automatically when that happe

10条回答
  •  广开言路
    2020-12-07 08:07

    This is a simple solution to that question. The vertical scroll will be activated only when the text overflows.

提交回复
热议问题