locked
How can I add new line in textblock? RRS feed

Answers

  • <TextBlock Background="yellow">sdfsdfsdfdsf <LineBreak/> asdasda</TextBlock>
    Thursday, March 30, 2006 7:46 PM

All replies

  • <TextBlock Background="yellow">sdfsdfsdfdsf <LineBreak/> asdasda</TextBlock>
    Thursday, March 30, 2006 7:46 PM
  • what about when you have <HyperlinkButton Content="MY TEXT I WANT I NEW LINE HERE" />?
    Thursday, July 3, 2008 1:52 AM
  • <HyperlinkButton>
      <HyperlinkButton.Content>
        <TextBlock>a<LineBreak />b</TextBlock>
      </HyperlinkButton.Content>
    </HyperlinkButton>

    I haven't tested it, but it ought to do the trick.
    Thursday, April 16, 2009 4:09 PM