Example #1
0
        /// <summary>
        /// This method will be executed when the OnGuidedTourStart event is raised
        /// </summary>
        /// <param name="args">This parameter will contain the GuideName as a string</param>
        private void TourStarted(GuidedTourStateEventArgs args)
        {
            tourStarted = true;

            currentGuide = (from guide in Guides where guide.Name.Equals(args.GuideName) select guide).FirstOrDefault();
            if (currentGuide != null)
            {
                //Show background overlay
                guideBackgroundElement.Visibility   = Visibility.Visible;
                currentGuide.GuideBackgroundElement = guideBackgroundElement;
                currentGuide.MainWindow             = mainRootElement;
                currentGuide.LibraryView            = Guide.FindChild(mainRootElement, libraryViewName);
                currentGuide.Initialize();
                currentGuide.Play();
                GuidesValidationMethods.CurrentExecutingGuide = currentGuide;
            }
        }