Exemple #1
0
        public void RaiseNavigated(object page, object parameter, Portable.NavigationMode mode)
        {
            var navigatedEventArgs = new Portable.NavigatedEventArgs()
            {
                Page           = page,
                Parameter      = parameter,
                NavigationMode = mode,
                PageType       = page?.GetType(),
            };

            RaiseNavigated(navigatedEventArgs);
        }
Exemple #2
0
        public bool RaiseNavigatingCancels(object page, object parameter, bool suspending, Portable.NavigationMode mode, Type targetType)
        {
            var navigatingDeferral  = new Template10.Mobile.Common.DeferralManager();
            var navigatingEventArgs = new Portable.NavigatingEventArgs(navigatingDeferral)
            {
                Page                = page,
                Parameter           = parameter,
                Suspending          = suspending,
                NavigationMode      = mode,
                TargetPageType      = targetType,
                TargetPageParameter = parameter,
            };

            RaiseNavigating(navigatingEventArgs);
            return(navigatingEventArgs.Cancel);
        }