I donโt know how to describe my problem, but imagine that I have a TextBox in WPF with long text. I set TextWrapping="Wrap" so that the whole line is displayed on one line, but I want my message to be shown as follows:
Lorem ipsum dolor sit amet, consectetur adipiscing el it. Fusce ligula nulla, cursus finibus mauris vel, rh oncus blandit sem. Fusce fermentum sed sem a porttito r. Proin id convallis ex.
Instead of this:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce ligula nulla, cursus finibus mauris vel, rhoncus blandit sem. Fusce fermentum sed sem a porttitor. Proin id convallis ex.
The difference is that the first text has a โhard cutโ after each n characters - the second text is wrapped that each line does not exceed the length of n characters
Do I need to insert \n after every nth character, or is there a WPF property that can solve this for me?
Thank you very much and merry Christmas to all of you :)
c # wpf textbox textwrapping
Unknown6656
source share