コード例 #1
0
        private void OnNavigatingEvent(object sender, NavigatingCancelEventArgs e)
        {
            // We are navigating away
            var eventArgs = new NavigatingEventArgs(e.Uri.ToString(), e.NavigationMode.Convert());
            RaiseNavigatingAway(eventArgs);

            e.Cancel = eventArgs.Cancel;
        }
コード例 #2
0
        private void OnNavigatingEvent(object sender, NavigatingCancelEventArgs e)
        {
            var sourcePage = string.Empty;
            if (e.SourcePageType != null)
            {
                sourcePage = e.SourcePageType.ToString();
            }

            // We are navigating away
            var eventArgs = new NavigatingEventArgs(sourcePage, e.NavigationMode.Convert());
            RaiseNavigatingAway(eventArgs);

            e.Cancel = eventArgs.Cancel;
        }
コード例 #3
0
        private void OnActivityPaused(object sender, ActivityEventArgs e)
        {
            _lastActivity = e.Activity;

            // We are navigating away
            var eventArgs = new NavigatingEventArgs(GetNavigationUri(e.Activity), NavigationMode.New);
            RaiseNavigatingAway(eventArgs);

            //e.Cancel = eventArgs.Cancel;
        }