-1

In my wpf application , i am using a richtextbox. Its vertical scrollbar is working fine. But its horizontal scrollbar is not working.

HorizontalScrollBarVisibility="Auto"

It is not giving proper results. Please help me.

itzmebibin
  • 9,199
  • 8
  • 48
  • 62

3 Answers3

0

Your text box is wrapping the inner contents which is a default for the RichTextBox Control. If you wish to explicitly enable it being scroll-able, you can do something similar to this StackOverflow Issue.

Community
  • 1
  • 1
Matt Wilkinson
  • 592
  • 2
  • 13
  • All long lines that exceed the width of RichTextBox have been auto-line breaked, and no horizontal scroll bar appears. – itzmebibin Aug 26 '15 at 09:12
0

VerticalScrollBar : VerticalScrollBarVisibility="Auto" MaxHeight="200"

HorizontalScrollBar : HorizontalScrollBarVisibility="Auto" MaxWidth="400"

M Komaei
  • 7,006
  • 2
  • 28
  • 34
-1

WPF Property of ScrollBar property can be changed by

richtextbox.HorizontalScrollBarVisibility = ScrollBarVisibility.Auto;
Sumit
  • 1