Esempio n. 1
0
        /// <summary>
        /// This method exits from tour
        /// </summary>
        private void ExitTour()
        {
            if (currentGuide != null)
            {
                foreach (Step tmpStep in currentGuide.GuideSteps)
                {
                    tmpStep.StepClosed -= Popup_StepClosed;
                }
                currentGuide.ClearGuide();
                GuideFlowEvents.GuidedTourStart  -= TourStarted;
                GuideFlowEvents.GuidedTourFinish -= TourFinished;

                if (exitGuideWindow != null)
                {
                    exitGuideWindow.ExitTourButton.Click     -= ExitTourButton_Click;
                    exitGuideWindow.ContinueTourButton.Click -= ContinueTourButton_Click;
                }

                //Hide guide background overlay
                guideBackgroundElement.Visibility             = Visibility.Hidden;
                GuidesValidationMethods.CurrentExecutingGuide = null;
                tourStarted = false;
            }
        }