Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How to insert a CRLF in a XML fil to be read properly by a WPF textBox

$
0
0

Dear all,

I have the follwing XML content snipet from a XML file that I created. Thta XML file is a configuration file where text inside gest return and dispplay through TextBloc.

<Paragraph><Header>Anticipated mix of investments</Header><Description>
              NZ Cash 20%\nNZ Fixed Income 12.5%\nInternational Fixed Income 47.5%</Description></Paragraph>

I have inserted as part of the string in <Description> element the \n caracters in order to be read by a string type variable.

After reading that string, the Texblox sees those carcters as normal text and not CRLF.

Any idea how should I insert it in my xml file?

regards

serge


Your knowledge is enhanced by that of others.


Viewing all articles
Browse latest Browse all 18858

Trending Articles