summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungkeun Lee <sngn.lee@samsung.com>2017-07-20 07:21:41 (GMT)
committerKangho Hur <kangho.hur@samsung.com>2017-10-23 04:34:39 (GMT)
commited6bf4e6fe2e34d7a149003021d2aacc83a9a95e (patch)
treeb35e4742dd3b8af1492f91539255bee4a93ce287
parent79f80e6e6c96da3d88ded283af9806b8c1078903 (diff)
downloadxamarin-forms-ed6bf4e6fe2e34d7a149003021d2aacc83a9a95e.zip
xamarin-forms-ed6bf4e6fe2e34d7a149003021d2aacc83a9a95e.tar.gz
xamarin-forms-ed6bf4e6fe2e34d7a149003021d2aacc83a9a95e.tar.bz2
Fix NavigationPage back button issue
- When use back-button on Navigation bar, page was popped without update of Xamarin.Core - Disable DefaultBackButtonEnabled - Invoke UpdateHasBackButton method in UpdateToolbarItem Change-Id: I40e24900ff198fc4fdc091ffff5d2df4c73c7d04
-rw-r--r--[-rwxr-xr-x]Xamarin.Forms.Platform.Tizen/Renderers/NavigationPageRenderer.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/NavigationPageRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/NavigationPageRenderer.cs
index c15045f..ee7a30b 100755..100644
--- a/Xamarin.Forms.Platform.Tizen/Renderers/NavigationPageRenderer.cs
+++ b/Xamarin.Forms.Platform.Tizen/Renderers/NavigationPageRenderer.cs
@@ -64,7 +64,7 @@ namespace Xamarin.Forms.Platform.Tizen
{
_naviFrame = new Naviframe(Forms.Context.MainWindow);
_naviFrame.PreserveContentOnPop = true;
- _naviFrame.DefaultBackButtonEnabled = true;
+ _naviFrame.DefaultBackButtonEnabled = false;
_naviFrame.AnimationFinished += OnAnimationFinished;
SetNativeControl(_naviFrame);
@@ -197,6 +197,7 @@ namespace Xamarin.Forms.Platform.Tizen
Native.Button leftButton = GetToolbarButton(ToolbarButtonPosition.Left);
item.SetPartContent(PartLeftToolbar, leftButton);
+ UpdateHasBackButton(page, item);
}
void UpdateHasBackButton(Page page, NaviItem item = null)