summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKangho Hur <kangho.hur@samsung.com>2017-03-16 00:26:10 (GMT)
committerKangho Hur <kangho.hur@samsung.com>2017-03-24 04:19:03 (GMT)
commit88646fa55cd16318cdbb73085a7428663899642d (patch)
treebe81c3fcae0ebd5f9e79ea8217017ecc3c713a1c
parenta67424eea941e4515bc22ea77fe13bbe6c8d1018 (diff)
downloadxamarin-forms-88646fa55cd16318cdbb73085a7428663899642d.zip
xamarin-forms-88646fa55cd16318cdbb73085a7428663899642d.tar.gz
xamarin-forms-88646fa55cd16318cdbb73085a7428663899642d.tar.bz2
Fix Page.DisplayAlert's message format converting
TASK=TCAPI-2218 - "\r\n" or Environment.NewLine is available. Change-Id: I4550f63060cdb6e794762f66c3ec1c6e491bfb65
-rw-r--r--Xamarin.Forms.Platform.Tizen/FormsApplication.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/FormsApplication.cs b/Xamarin.Forms.Platform.Tizen/FormsApplication.cs
index 57efa3f..66467b7 100644
--- a/Xamarin.Forms.Platform.Tizen/FormsApplication.cs
+++ b/Xamarin.Forms.Platform.Tizen/FormsApplication.cs
@@ -166,11 +166,11 @@ namespace Xamarin.Forms.Platform.Tizen
{
Native.Dialog alert = new Native.Dialog(Forms.Context.MainWindow);
alert.Title = arguments.Title;
+ var message = arguments.Message.Replace("&", "&amp;").Replace("<", "&lt;").Replace(">", "&gt;").Replace(Environment.NewLine, "<br>");
var label = new ELabel(alert)
{
- Text = "<span font_size=30 color=#000000>" + arguments.Message + "<\\span>",
+ Text = "<span font_size=30 color=#000000>" + message + "<\\span>",
};
-
label.Show();
var box = new Box(alert);