locked
Flowing text from one textblock to another textblock. RRS feed

  • Question

  • Hi,

    I have a TextBlock and I am setting the Text property of that TextBlock to some text. I have set the MaxHeight and MaxWidth on the TextBlock. If the text doesnt fit in that TextBlock I want the remaining text to go to another TextBlock. Is there a way to do this in XAML?

    Thanks in advance.
    Ragha
    Wednesday, November 12, 2008 4:12 PM

Answers

  • why not use a flow document with text inside paragraphs....! Sorry if this was not what you were expecting. Your question appeared like a flow issue and we already have FlowDocument.

    Research and Development Imageright Inc. http://krishnabhargav.blogspot.com
    • Proposed as answer by DutchMarcel Thursday, November 13, 2008 7:29 AM
    • Marked as answer by Jim Zhou - MSFT Wednesday, November 19, 2008 9:53 AM
    Wednesday, November 12, 2008 7:05 PM

All replies

  • Sorry to ask that, but what is your main objective?
    Maybe there is a better way to achive what you really need besides switching textblocks.

    If you explain a little better maybe i can help you.

    Thanks!

    H1·J4CK3R
    Thnx !
    Wednesday, November 12, 2008 4:42 PM
  • I would vote for expanding textblock, however, if you really need it, you should create converter, that splits text according the maxwidth. It not going to be simple 
    Tamir http://blogs.microsoft.co.il/blogs/tamir
    If your question was answered, please mark it.
    Wednesday, November 12, 2008 6:37 PM
  • why not use a flow document with text inside paragraphs....! Sorry if this was not what you were expecting. Your question appeared like a flow issue and we already have FlowDocument.

    Research and Development Imageright Inc. http://krishnabhargav.blogspot.com
    • Proposed as answer by DutchMarcel Thursday, November 13, 2008 7:29 AM
    • Marked as answer by Jim Zhou - MSFT Wednesday, November 19, 2008 9:53 AM
    Wednesday, November 12, 2008 7:05 PM