X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FTizen.NUI.Components%2FControls%2FNavigation%2FNavigator.cs;h=f5f65e20dbd7ab717f8bfa5880f200de1ad8c552;hb=96595832aa5b206116a60261531d2f6f24dd7180;hp=6db2566dfb4f6ec592d139e97e2ab27f1cff920e;hpb=033d4dd7d6442c7840813932d772ae5db146f0df;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git
diff --git a/src/Tizen.NUI.Components/Controls/Navigation/Navigator.cs b/src/Tizen.NUI.Components/Controls/Navigation/Navigator.cs
index 6db2566..f5f65e2 100755
--- a/src/Tizen.NUI.Components/Controls/Navigation/Navigator.cs
+++ b/src/Tizen.NUI.Components/Controls/Navigation/Navigator.cs
@@ -148,11 +148,7 @@ namespace Tizen.NUI.Components
if ((e.Key.State == Key.StateType.Up) && ((e.Key.KeyPressedName == "Escape") || (e.Key.KeyPressedName == "BackSpace") || (e.Key.KeyPressedName == "XF86Back")))
{
- if (PageCount >= 1)
- {
- Tizen.Log.Info("NUI", $"Navigator pops the peek page by {e.Key.KeyPressedName}.\n");
- Pop();
- }
+ OnBackNavigation(new BackNavigationEventArgs());
}
}
@@ -845,6 +841,28 @@ namespace Tizen.NUI.Components
}
///
+ /// Called when the back navigation is started.
+ ///
+ /// The back navigation information.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ protected virtual void OnBackNavigation(BackNavigationEventArgs eventArgs)
+ {
+ if (PageCount >= 1)
+ {
+ Tizen.Log.Info("NUI", $"Navigator pops the peek page.\n");
+ Pop();
+ }
+ }
+
+ ///
+ /// Called when the back navigation is required outside Navigator.
+ ///
+ internal void NavigateBack()
+ {
+ OnBackNavigation(new BackNavigationEventArgs());
+ }
+
+ ///
/// Create Transitions between currentTopPage and newTopPage
///
/// The top page of Navigator.
@@ -1041,4 +1059,12 @@ namespace Tizen.NUI.Components
}
}
}
+
+ ///
+ /// BackNavigationEventArgs is a class to record back navigation event arguments which will sent to user.
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public class BackNavigationEventArgs : EventArgs
+ {
+ }
}