summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/Renderers/NavigationPageRenderer.cs
diff options
context:
space:
mode:
authordarkleem <cdark.lim@samsung.com>2017-06-22 22:04:32 +0900
committerdarkleem <cdark.lim@samsung.com>2017-06-23 10:57:34 +0900
commit872fafe8d3638e6d72adaebd232b8bfdd94abbb5 (patch)
treeb30cf0411cae2af20d56a6d45b63e04a61f912fc /Xamarin.Forms.Platform.Tizen/Renderers/NavigationPageRenderer.cs
parentcff8f1f89494249a73a6c9998be5d78f5af484d6 (diff)
downloadxamarin-forms-872fafe8d3638e6d72adaebd232b8bfdd94abbb5.tar.gz
xamarin-forms-872fafe8d3638e6d72adaebd232b8bfdd94abbb5.tar.bz2
xamarin-forms-872fafe8d3638e6d72adaebd232b8bfdd94abbb5.zip
fix NavigationPage toolbar BackButton issue
- TASK=TCAPI-2537 Change-Id: Ief93ba32de112753a51b4ea88f96fae02be479d3 Signed-off-by: darkleem <cdark.lim@samsung.com>
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Renderers/NavigationPageRenderer.cs')
-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 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);
}