summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/FormsApplication.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/FormsApplication.cs')
-rw-r--r--Xamarin.Forms.Platform.Tizen/FormsApplication.cs27
1 files changed, 1 insertions, 26 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/FormsApplication.cs b/Xamarin.Forms.Platform.Tizen/FormsApplication.cs
index 0b8db94e..57d14223 100644
--- a/Xamarin.Forms.Platform.Tizen/FormsApplication.cs
+++ b/Xamarin.Forms.Platform.Tizen/FormsApplication.cs
@@ -169,32 +169,7 @@ 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 align=center>" + message + "<\\span>",
- };
- label.Show();
-
- var box = new Box(alert);
- box.Show();
-
- bool labelAdded = false;
- box.Resized += (s, e) =>
- {
- label.LineWrapType = WrapType.Word;
- //set 2% padding for alert text message width
- label.LineWrapWidth = (int)Math.Round(box.Geometry.Width * 0.98);
- if (!labelAdded)
- {
- /*Adding label to the box (box.PackEnd(label)) has been placed in box.Resized()
- event due to get better performance. For some reason (probably EFL bug) when
- it's placed outside of it, box.Resized() event is called far too many times.*/
- box.PackEnd(label);
- labelAdded = true;
- }
- };
-
- alert.Content = box;
+ alert.Text = message;
EButton cancel = new EButton(alert) { Text = arguments.Cancel };
alert.NegativeButton = cancel;