From f771ed39b90a9bbf4cbe2b9c1038ea84a509ff89 Mon Sep 17 00:00:00 2001 From: Kangho Hur Date: Wed, 19 Apr 2017 16:09:38 +0900 Subject: [PATCH] Fix the layout of Page.DisplayAlert's buttons TASK=TCAPI-2329 Change-Id: Iff5759754232a3d6981fdf0a8de5693541e09f55 --- Xamarin.Forms.Platform.Tizen/FormsApplication.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Xamarin.Forms.Platform.Tizen/FormsApplication.cs b/Xamarin.Forms.Platform.Tizen/FormsApplication.cs index 66467b7..83efe7a 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) => { -- 2.7.4