0

It works if I add a lineBreak this way:

<TextBlock HorizontalAlignment="Left" Margin="35,82,0,0" TextWrapping="Wrap" FontSize="46" Foreground="LightGreen"  Text="" VerticalAlignment="Top" Height="64" Width="1031">

  Credential SetUp <lineBreak/> Start Here

</TextBlock>



So, I want to add lineBreak inside Text="Credential SetUp <lineBreak/> Start Here"  ?

This is not working. am I doing it correctly?

MilkBottle
  • 4,242
  • 13
  • 64
  • 146

1 Answers1

3

Try this:

<TextBlock Text="Credential SetUp&#x0a;Start Here" />

From: Newline in string attribute

Community
  • 1
  • 1
Poc275
  • 337
  • 1
  • 7
  • 15