[NUI] Add OnBackNavigation to Page
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Mon, 28 Nov 2022 11:36:53 +0000 (20:36 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 6 Dec 2022 08:08:09 +0000 (17:08 +0900)
commit918c0d716efa5464042e3288ae86936151f7c090
treee45e26995a761aaeb0d3d407205a0b239cf8cbe0
parent3e5d926996b0bc1cd209da3fb6a60a904a9c4a26
[NUI] Add OnBackNavigation to Page

To enable customization of back navigation per page, OnBackNavigation
is added to Page.
e.g.
class CustomPage : Page
{
    protected override OnBackNavigation(PageBackNavigationEventArgs args)
    {
        // Do something when back navigation is started.
        ...

        // To pop this page, call base.OnBackNavigation().
        // Otherwise, do not call base.OnBackNavigation().
        base.OnBackNavigation(args);
    }
}
src/Tizen.NUI.Components/Controls/Navigation/Navigator.cs
src/Tizen.NUI.Components/Controls/Navigation/Page.cs