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

Bind breakline symbol to Label.Text

$
0
0

When binding a Label.Text = "{Binding BreaklineText}"
string BreaklineText = "Text first line. \n Text second line.";
The XAML does not recognise \n as breakline
have tried many ways \n \r 

I refuse to believe I will need to dynamically create a Custom control to generate spans on numbers of \n ...
is there any easier/simpler approach ?


Viewing all articles
Browse latest Browse all 89864

Trending Articles



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