public void ActivationProcessed(object sender, ActivationProcessedEventArgs e)
 {
     if (!e.Success) return;
     var screen = e.Item as IViewAware;
     if (screen == null)
         return;
     if (currentResult != null)
         currentResult.Page = screen.GetView();
     Complete();
 }
Пример #2
0
 /// <summary>
 /// Used for viewmodel first navigation
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 public void ActivationProcessed(object sender, ActivationProcessedEventArgs e)
 {
     if (!e.Success) return;
     var screen = e.Item as IViewAware;
     if (screen == null)
         return;
     //if (loader.Result  != null)
     //    loader.Result.Page = screen.GetView();
     //    NavigationConductor.NavigationService.TryInjectQueryString(screen, currentResult.Page);
        // base.Complete(loader.Result);
 }
        void Host_ActivationProcessed(object sender, ActivationProcessedEventArgs e)
        {
            if(e.Success)
            {
                UpdateTitle(sender);
                return;
            }

            if(previousScreen == null)
                return;

            Log.Info("Updating history key {0}.", config.HistoryKey);
            stateManager.InsertOrUpdate(config.HistoryKey, previousScreen.GetHistoryValue());
            stateManager.CommitChanges(previousScreen.DetermineDisplayName());
            UpdateTitle(previousScreen);
        }
Пример #4
0
        /// <summary>
        /// Used for viewmodel first navigation
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public void ActivationProcessed(object sender, ActivationProcessedEventArgs e)
        {
            if (!e.Success)
            {
                return;
            }
            var screen = e.Item as IViewAware;

            if (screen == null)
            {
                return;
            }
            //if (loader.Result  != null)
            //    loader.Result.Page = screen.GetView();
            //    NavigationConductor.NavigationService.TryInjectQueryString(screen, currentResult.Page);
            // base.Complete(loader.Result);
        }
        void Host_ActivationProcessed(object sender, ActivationProcessedEventArgs e)
        {
            if (e.Success)
            {
                UpdateTitle(sender);
                return;
            }

            if (previousScreen == null)
            {
                return;
            }

            Log.Info("Updating history key {0}.", config.HistoryKey);
            stateManager.InsertOrUpdate(config.HistoryKey, previousScreen.GetHistoryValue());
            stateManager.CommitChanges(previousScreen.DetermineDisplayName());
            UpdateTitle(previousScreen);
        }
Пример #6
0
 private void DXActivationProcessed(object sender, ActivationProcessedEventArgs e)
 {
     NotifyOfPropertyChange(() => ActiveItemIndex);
 }
Пример #7
0
 /// <summary>
 /// Occures when the <see cref="ViewModel"/> activates a content view.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="ActivationProcessedEventArgs"/> instance containing the event data.</param>
 private void ViewModelOnActivationProcessed(object sender, ActivationProcessedEventArgs e)
 {
     this.HandleRibbonMergeAndUnMerge();
 }