I have a TextBlock and want to show information from the database. I wan't to display the text like this:
Task for Day xy
- blabla
- blabla
- more blablabla
Somehow I need to include a character for the newlines.. I thoug about \n.. so the text in the database would look like:
Task for Day xy\n- blabla\n- blabla\n- more blablabla
doesn't work.
I tried and searched online for hours.. no solution how to do that. Also this doesn't work:
Task for Day xy<LineBreak />- blabla<LineBreak />- blabla<LineBreak />- more blablabla
the application shows exactly that string from the database without new lines..
here the part of the xaml:
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="1" Text="{Binding Date, StringFormat={}{0:dd.MM.yyyy}}" Margin="6" />
<TextBlock Grid.Column="2" Text="{Binding Notes}" Margin="6" />
</Grid>
any ideas?