Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Xamarin.Froms 3.0 Editor \r\n handling

$
0
0

Hi @all,

I'm, currently developing an UWP app with Xamarin.Forms 3.0 against an existing SQL Server database. Some fields are containing multi line text with \r\n as a line break. When I bind the content of such a field to an Editor control it seems that the Editor immediately sends a normalized version of the text back with only \n as a line break. Example:
"Text1\r\nText2\r\nText3" => "Text1\rText2\rText3".
This becomes a problem for several reasons:
1. My entity is marked as dirty and the user is ask for saving changes, even nothing has changed.
2. I don't know whether the native Win Forms clients would handle the change properly.

So my question is: Is there a way to control which character(s) are used for a line break?

Tanks in advance,
Carsten


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>