fix NavigationPage toolbar BackButton issue 82/135482/2
authordarkleem <cdark.lim@samsung.com>
Thu, 22 Jun 2017 13:04:32 +0000 (22:04 +0900)
committerdarkleem <cdark.lim@samsung.com>
Fri, 23 Jun 2017 01:57:34 +0000 (10:57 +0900)
  - TASK=TCAPI-2537

Change-Id: Ief93ba32de112753a51b4ea88f96fae02be479d3
Signed-off-by: darkleem <cdark.lim@samsung.com>
Xamarin.Forms.Platform.Tizen/Renderers/NavigationPageRenderer.cs

index 49f4557..36f199d 100644 (file)
@@ -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);
                }