From 9a369209cf89fc6c317e1611a3356650055d8150 Mon Sep 17 00:00:00 2001 From: darkleem Date: Thu, 22 Jun 2017 22:04:32 +0900 Subject: fix NavigationPage toolbar BackButton issue - TASK=TCAPI-2537 Change-Id: Ief93ba32de112753a51b4ea88f96fae02be479d3 Signed-off-by: darkleem --- Xamarin.Forms.Platform.Tizen/Renderers/NavigationPageRenderer.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Xamarin.Forms.Platform.Tizen') diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/NavigationPageRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/NavigationPageRenderer.cs index 49f45572..36f199d0 100644 --- a/Xamarin.Forms.Platform.Tizen/Renderers/NavigationPageRenderer.cs +++ b/Xamarin.Forms.Platform.Tizen/Renderers/NavigationPageRenderer.cs @@ -168,7 +168,7 @@ namespace Xamarin.Forms.Platform.Tizen item.TitleBarVisible = (bool)page.GetValue(NavigationPage.HasNavigationBarProperty); UpdateToolbarItem(page, item); UpdateBarBackgroundColor(item); - if(TizenPlatformServices.AppDomain.IsTizenSpecificAvailable) + if (TizenPlatformServices.AppDomain.IsTizenSpecificAvailable) UpdateBreadCrumbsBar(item); } @@ -200,8 +200,10 @@ namespace Xamarin.Forms.Platform.Tizen EButton button = null; - if ((bool)page.GetValue(NavigationPage.HasBackButtonProperty)) + if ((bool)page.GetValue(NavigationPage.HasBackButtonProperty) && _naviFrame.NavigationStack.Count > 1) + { button = CreateNavigationButton((string)page.GetValue(NavigationPage.BackButtonTitleProperty)); + } item.SetPartContent(PartBackButton, button); } -- cgit v1.2.3