[NUI] Add EnableBackNavigation to Navigator
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI.Components / Controls / Navigation / AppBar.cs
index f7532ba..425c1e1 100755 (executable)
@@ -672,8 +672,8 @@ namespace Tizen.NUI.Components
                 var page = GetParent() as Page;
                 if (page != null)
                 {
-                    var navigator = page.GetParent() as Navigator;
-                    if (navigator != null)
+                    var navigator = page.Navigator;
+                    if ((navigator != null) && (navigator.EnableBackNavigation))
                     {
                         navigator.Pop();
                     }