summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarkleem <cdark.lim@samsung.com>2017-06-22 13:04:32 (GMT)
committerKangho Hur <kangho.hur@samsung.com>2017-10-23 04:34:37 (GMT)
commit587ea970617f9d5bf28ad954ccd25d6d18133e07 (patch)
tree6f523bec8a0d31df85aab0dc9abfcb42552c0a1c
parentc1ccbbf87344e43ee79ccefe9c806f98025f7e48 (diff)
downloadxamarin-forms-587ea970617f9d5bf28ad954ccd25d6d18133e07.zip
xamarin-forms-587ea970617f9d5bf28ad954ccd25d6d18133e07.tar.gz
xamarin-forms-587ea970617f9d5bf28ad954ccd25d6d18133e07.tar.bz2
fix NavigationPage toolbar BackButton issue
- TASK=TCAPI-2537 Change-Id: Ief93ba32de112753a51b4ea88f96fae02be479d3 Signed-off-by: darkleem <cdark.lim@samsung.com>
-rw-r--r--Xamarin.Forms.Platform.Tizen/Renderers/NavigationPageRenderer.cs6
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 49f4557..36f199d 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);
}