diff options
author | Kangho Hur <kangho.hur@samsung.com> | 2017-03-16 09:26:10 +0900 |
---|---|---|
committer | Kangho Hur <kangho.hur@samsung.com> | 2017-04-24 13:36:56 +0900 |
commit | 0cb02eb701f49a5ac29c32e4bb31c9a9174894b8 (patch) | |
tree | 8da741a40d4b9b01842ba4a0dfe213da63f2a9f9 | |
parent | dbd04f05fa7fddbf024f22f4ce9fa12d537e328a (diff) | |
download | xamarin-forms-0cb02eb701f49a5ac29c32e4bb31c9a9174894b8.tar.gz xamarin-forms-0cb02eb701f49a5ac29c32e4bb31c9a9174894b8.tar.bz2 xamarin-forms-0cb02eb701f49a5ac29c32e4bb31c9a9174894b8.zip |
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.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/FormsApplication.cs b/Xamarin.Forms.Platform.Tizen/FormsApplication.cs index 57efa3f6..66467b7c 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("&", "&").Replace("<", "<").Replace(">", ">").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); |