question

ApptacularApps-8305 avatar image
0 Votes"
ApptacularApps-8305 asked ·

How to add a line break in string resource from Resources.resw file for use in TextBlock


How can the Resources.resw file be used to add a line break in a string resource?

I tried the following but it didn't work:

<TextBlock x:Uid="Example" />

Name: Example
Value: Line 1&#x0a;Line 2

windows-uwpwindows-uwp-xaml
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

mrlacey avatar image
2 Votes"
mrlacey answered ·

Simply put a line break in the value in the resource.

tip: Shift+Enter in the editor will add the new line. ;)


9741-resource-line-break.png



·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.