summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/FormsApplication.cs
diff options
context:
space:
mode:
authorKangho Hur <kangho.hur@samsung.com>2017-04-19 16:09:38 +0900
committerKangho Hur <kangho.hur@samsung.com>2017-07-10 11:11:23 +0900
commit25c871f9a1b508156852524bc8dfef8d38528e93 (patch)
tree16a4715960ab51894fe4e93594409e6032e70331 /Xamarin.Forms.Platform.Tizen/FormsApplication.cs
parent6fd217e29394ef248a3a32bbcbedd44f8eaf439e (diff)
downloadxamarin-forms-25c871f9a1b508156852524bc8dfef8d38528e93.tar.gz
xamarin-forms-25c871f9a1b508156852524bc8dfef8d38528e93.tar.bz2
xamarin-forms-25c871f9a1b508156852524bc8dfef8d38528e93.zip
Fix the layout of Page.DisplayAlert's buttons
TASK=TCAPI-2329 Change-Id: Iff5759754232a3d6981fdf0a8de5693541e09f55
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/FormsApplication.cs')
-rw-r--r--Xamarin.Forms.Platform.Tizen/FormsApplication.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/FormsApplication.cs b/Xamarin.Forms.Platform.Tizen/FormsApplication.cs
index 66467b7c..83efe7a2 100644
--- a/Xamarin.Forms.Platform.Tizen/FormsApplication.cs
+++ b/Xamarin.Forms.Platform.Tizen/FormsApplication.cs
@@ -3,6 +3,7 @@ using System.ComponentModel;
using System.Diagnostics;
using Tizen.Applications;
using ElmSharp;
+using EButton = ElmSharp.Button;
using EProgressBar = ElmSharp.ProgressBar;
using EColor = ElmSharp.Color;
using ELabel = ElmSharp.Label;
@@ -194,7 +195,7 @@ namespace Xamarin.Forms.Platform.Tizen
alert.Content = box;
- Native.Button cancel = new Native.Button(alert) { Text = arguments.Cancel };
+ EButton cancel = new EButton(alert) { Text = arguments.Cancel };
alert.NegativeButton = cancel;
cancel.Clicked += (s, evt) =>
{
@@ -204,8 +205,8 @@ namespace Xamarin.Forms.Platform.Tizen
if (arguments.Accept != null)
{
- Native.Button ok = new Native.Button(alert) { Text = arguments.Accept };
- alert.PositiveButton = ok;
+ EButton ok = new EButton(alert) { Text = arguments.Accept };
+ alert.NeutralButton = ok;
ok.Clicked += (s, evt) =>
{
arguments.SetResult(true);
@@ -267,7 +268,7 @@ namespace Xamarin.Forms.Platform.Tizen
if (null != arguments.Cancel)
{
- Native.Button cancel = new Native.Button(Forms.Context.MainWindow) { Text = arguments.Cancel };
+ EButton cancel = new EButton(Forms.Context.MainWindow) { Text = arguments.Cancel };
alert.NegativeButton = cancel;
cancel.Clicked += (s, evt) =>
{