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-07-10 02:11:27 (GMT)
commit9a369209cf89fc6c317e1611a3356650055d8150 (patch)
tree2eefa35662bcaeef986bddeeca34aa71c912a194
parenta71aad093926a0b953a0e4ee2071adc6a5326671 (diff)
downloadxamarin-forms-9a369209cf89fc6c317e1611a3356650055d8150.zip
xamarin-forms-9a369209cf89fc6c317e1611a3356650055d8150.tar.gz
xamarin-forms-9a369209cf89fc6c317e1611a3356650055d8150.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);
}