Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

Commented Unassigned: RichTextBox: Remove wordwrap feature [21850]

$
0
0
Hi,

Is there any way to remove wordwrap feature?

I have wpf application in which there is richtextbox control. I added some multiline text with tabs and spaces into this richtextbox.
If I increase the font all my text formatting is change and a vertical scroll bar appears.

I feel this is caused because of word wrap.

Regards,
Sharda.
Comments: ** Comment from web user: BoucherS **

Hi,

The vertical scrollBars appears because you have set :
```
VerticalScrollBarVisibility="Auto"
```.

For the formatting that is different upon loading a save data, what I can see is that using "RtfFormatter" will have different value for tab spacing. For example, when I do a tab in the RichTextBox, it takes 4 spaces. If I save ans load, the tab now takes 8 spaces....changing the formating.

If you starts the app, do a save and a load, and then add the tab, it will take 8 spaces. Then if you save and load, the formatting will be kept.

If you use the "XamlFormatter", doing a tab in the RichTextBox takes 4 spaces. If I save and load, the formating will be kept.


Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>