Reputation:
I have this textblock
<TextBlock Text="{x:Bind item}" Width="100" Margin="10,0,0,0" FontSize="15" />
I would like if the text exceed the width of the textblock to break o the next line How do i achieve this that is
this my text this is the newline
of the text
Currently if the text surpass the width of 100 they are cut off
Upvotes: 0
Views: 106
Reputation: 5837
Set TextWrapping="Wrap"
for your TextBlock
<TextBlock Text="{x:Bind item}" Width="100" Margin="10,0,0,0" FontSize="15" TextWrapping="Wrap"/>
For more info: TextBlock, TextWrapping
Upvotes: 1