diff options
author | Kangho Hur <kangho.hur@samsung.com> | 2017-06-23 03:45:19 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@review.ap-northeast-2.compute.internal> | 2017-06-23 03:45:19 +0000 |
commit | 23f4d48bc575e653d601fe9988bf9bc9c8a67268 (patch) | |
tree | 755ebcba086c3e9ad4973d1befad11d5b9051d3d | |
parent | 279b288b8147edc01da40c1508c8e27adb985cad (diff) | |
parent | 872fafe8d3638e6d72adaebd232b8bfdd94abbb5 (diff) | |
download | xamarin-forms-23f4d48bc575e653d601fe9988bf9bc9c8a67268.tar.gz xamarin-forms-23f4d48bc575e653d601fe9988bf9bc9c8a67268.tar.bz2 xamarin-forms-23f4d48bc575e653d601fe9988bf9bc9c8a67268.zip |
Merge "fix NavigationPage toolbar BackButton issue" into tizen
-rw-r--r-- | Xamarin.Forms.Platform.Tizen/Renderers/NavigationPageRenderer.cs | 6 |
1 files changed, 4 insertions, 2 deletions
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); } |