예제 #1
0
        void FacadeNavigatedEventHandler(object sender, Windows.UI.Xaml.Navigation.NavigationEventArgs e)
        {
            var args = new NavigatedEventArgs(e);

            foreach (var handler in _navigatedEventHandlers)
            {
                handler(this, args);
            }
            CurrentPageType  = e.SourcePageType;
            CurrentPageParam = e.Parameter as String;
        }
예제 #2
0
        public void RaiseNavigated(object page, object parameter, NavigationMode mode)
        {
            var navigatedEventArgs = new NavigatedEventArgs()
            {
                Page           = page as Page,
                Parameter      = parameter,
                NavigationMode = mode,
                PageType       = page?.GetType(),
            };

            RaiseNavigated(navigatedEventArgs);
        }
        void FacadeNavigatedEventHandler(object sender, Windows.UI.Xaml.Navigation.NavigationEventArgs e)
        {
            CurrentPageType  = e.SourcePageType;
            CurrentPageParam = e.Parameter;
            var args = new NavigatedEventArgs(e, Content as Page);

            if (NavigationModeHint != NavigationMode.New)
            {
                args.NavigationMode = NavigationModeHint;
            }
            NavigationModeHint = NavigationMode.New;
            foreach (var handler in _navigatedEventHandlers)
            {
                handler(this, args);
            }
        }
        void FacadeNavigatedEventHandler(object sender, Windows.UI.Xaml.Navigation.NavigationEventArgs e)
        {
            DebugWrite();

            CurrentPageType  = e.SourcePageType;
            CurrentPageParam = SerializationService.Deserialize(e.Parameter?.ToString());
            var args = new NavigatedEventArgs(e, Content as Page);

            if (NavigationModeHint != NavigationMode.New)
            {
                args.NavigationMode = NavigationModeHint;
            }
            NavigationModeHint = NavigationMode.New;
            foreach (var handler in _navigatedEventHandlers)
            {
                handler(this, args);
            }
        }
예제 #5
0
 void FacadeNavigatedEventHandler(object sender, Windows.UI.Xaml.Navigation.NavigationEventArgs e)
 {
     var args = new NavigatedEventArgs(e);
     foreach (var handler in _navigatedEventHandlers)
     {
         handler(this, args);
     }
     CurrentPageType = e.SourcePageType;
     CurrentPageParam = e.Parameter as String;
 }
예제 #6
0
        void FacadeNavigatedEventHandler(object sender, Windows.UI.Xaml.Navigation.NavigationEventArgs e)
        {
            DebugWrite();

            CurrentPageType = e.SourcePageType;
            CurrentPageParam = SerializationService.Deserialize(e.Parameter?.ToString());
            var args = new NavigatedEventArgs(e, Content as Page);
            if (NavigationModeHint != NavigationMode.New)
                args.NavigationMode = NavigationModeHint;
            NavigationModeHint = NavigationMode.New;
            foreach (var handler in _navigatedEventHandlers)
            {
                handler(this, args);
            }
        }
예제 #7
0
 public void RaiseNavigated(NavigatedEventArgs e)
 {
     Navigated?.Invoke(this, e);
 }
예제 #8
0
 public void RaiseNavigated(NavigatedEventArgs e)
 {
     Navigated?.Invoke(this, e);
     // for backwards compat
     FrameFacadeInternal.RaiseNavigated(e);
 }
예제 #9
0
 void FacadeNavigatedEventHandler(object sender, Windows.UI.Xaml.Navigation.NavigationEventArgs e)
 {
     CurrentPageType = e.SourcePageType;
     CurrentPageParam = e.Parameter;
     var args = new NavigatedEventArgs(e, Content as Page);
     if (NavigationModeHint != NavigationMode.New)
         args.NavigationMode = NavigationModeHint;
     NavigationModeHint = NavigationMode.New;
     foreach (var handler in _navigatedEventHandlers)
     {
         handler(this, args);
     }
 }
예제 #10
0
 private void UpdateButtons(NavigatedEventArgs e) { UpdateButtons(e.PageType); }