Extended WPF Toolkit RichTextBox display text vertically

馋奶兔 提交于 2019-12-06 03:03:15

If you add a width to the RichTextBox, it should fix it.

I did this so it binds to the parent.

Width="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=Grid, AncestorLevel=1}, Path=ActualWidth}"

Note you will have to determine AncestorType for you. But you can do this too. Width="100"

Agree with "jmogera". Need to set width for this issue.

HorizontalAlignment="Stretch" MinWidth="100"

You can set MinWidth to 100 and keep HorizontalAlign to streach if you want control to resize.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!