C# WPF - ScrollViewer + TextBlock troubles

后端 未结 3 1220
迷失自我
迷失自我 2020-12-31 02:17

I have a TextBlock within a ScrollViewer that aligns with stretch to its window. I need the TextBlock to behave as the following:

3条回答
  •  囚心锁ツ
    2020-12-31 02:54

    If you have more complicated layout and cannot bind to the ScrollViewer then the IgnoreWidthControl in the answer https://stackoverflow.com/a/41281041/254109 may help.

提交回复
热议问题