コード例 #1
0
        public void GoBack()
        {
            // Notify Navigation Away and Cancel if flag is set
            CancelEventArgs args = new CancelEventArgs();

            OnNavigatingFrom?.Invoke(this, args);
            if (args.Cancel)
            {
                return;
            }

            // Go Back and notify OnNavigatedFrom
            Frame.GoBack();
            CurrentPage = Frame.CurrentSource;

            OnNavigatedFrom?.Invoke(this, new EventArgs());
        }
コード例 #2
0
 void IMenuNavigationHook.InvokeOnNavigatingFrom(object sender, object args)
 {
     OnNavigatingFrom?.Invoke(sender, args);
 }