locked
Text wrapping by character RRS feed

  • Question

  •  

    Is there a way where I can make the text in TextBlock/TextBox/RichTextBox got wrapped by character instead of by word?
    Wednesday, October 3, 2007 3:17 AM

Answers

  • you are probably looking for the IsHyphenationenabled property on the flowdocumetn
    Tuesday, May 19, 2009 1:39 PM

All replies

  • you would have to set the width to that of a single character.... in the case of a richtextbox, it might look a tad better since yor control width can be the usual.. you will have to set the page width of the flowdocument to that of a single character giving you the effect of wrapping by char

     

    Wednesday, October 3, 2007 6:04 AM
  •  

    I mean I would like to make wrapped without cutting the whole word. For example, if I have 10 characters I can fit, it will look like this

     

    0123456789

    The quick

    brown fox

    jumps over

     the lazy 

    dog.

     

    if the width is 8, it will be like

     

    01234567

    The quic

    k brown

    fox jump

    s over t

    he lazy 

    dog.

    Wednesday, October 3, 2007 6:23 AM
  • Would love some input on this. I need the same. For example when you rename files in windows in place, it wraps that way.

    Noorbakhsh
    Wednesday, July 9, 2008 9:43 PM
  • you are probably looking for the IsHyphenationenabled property on the flowdocumetn
    Tuesday, May 19, 2009 1:39 PM