summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKangho Hur <kangho.hur@samsung.com>2017-04-27 20:56:05 +0900
committerKangho Hur <kangho.hur@samsung.com>2017-07-10 11:11:24 +0900
commit0ab4ca21fc60e782028be726ad41eb6458c81496 (patch)
tree97be46250de2758a00f3787a1364dfb0746754ba
parent79282d701e4ec71ced28953656ce9ea8e743ea22 (diff)
downloadxamarin-forms-0ab4ca21fc60e782028be726ad41eb6458c81496.tar.gz
xamarin-forms-0ab4ca21fc60e782028be726ad41eb6458c81496.tar.bz2
xamarin-forms-0ab4ca21fc60e782028be726ad41eb6458c81496.zip
Fix implementatoin of Page.DisplayAlert
Change-Id: If1ba19fe1c2728b237d10288e5b2d68eccf0de58
-rw-r--r--Xamarin.Forms.Platform.Tizen/FormsApplication.cs27
-rw-r--r--packaging/xamarin-forms-tizen.spec2
2 files changed, 2 insertions, 27 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;
diff --git a/packaging/xamarin-forms-tizen.spec b/packaging/xamarin-forms-tizen.spec
index f996e7f5..c7349dfb 100644
--- a/packaging/xamarin-forms-tizen.spec
+++ b/packaging/xamarin-forms-tizen.spec
@@ -2,7 +2,7 @@
%define XF_RELEASE 233
# Increase this XF_DEV_VERSION when any public APIs of Xamarin.Forms.Platform.Tizen are changed.
-%define XF_DEV_VERSION 002
+%define XF_DEV_VERSION 003
Name: xamarin-forms-tizen
Summary: Xamarin.Forms for Tizen platform