locked
What's the best way to do this? RRS feed

  • Question

  • I want to build up some text based data line by line, IE I want a kind of text/page object that I can build up by  adding single lines at a time to it. I'll be binding it to a textblock to display it's contents.

    I don't know what object to use for the data model of this "page" (really it's just a small paragraph amount of text). I'm aware of the flowDocument object and it looks like that would work but I don't need any of it's features, I just want to display simple text. Is the FlowDocument object the thing to use in this case?

    Monday, February 10, 2020 10:28 AM

All replies

  • Can't you just use a RichTextBox ?

    Monday, February 10, 2020 11:48 AM
  • Aren't those for allowing the user to input data? I want something read-only, for displaying text only.
    Monday, February 10, 2020 1:05 PM
  • Aren't those for allowing the user to input data? I want something read-only, for displaying text only.
    You can set IsReadOnly = true
    Monday, February 10, 2020 1:23 PM