Example #1
0
        /// <summary>
        /// Creates the background for the GuidedTour
        /// </summary>
        private void CreateBackground()
        {
            Window mainWindow = Window.GetWindow(mainRootElement);

            if (guideBackgroundElement == null)
            {
                guideBackgroundElement = new GuideBackground(mainWindow)
                {
                    Name = guideBackgroundName,
                    HorizontalAlignment = HorizontalAlignment.Left,
                    VerticalAlignment   = VerticalAlignment.Top,
                    Visibility          = Visibility.Hidden
                };

                Grid mainGrid = Guide.FindChild(mainRootElement, mainGridName) as Grid;
                mainGrid.Children.Add(guideBackgroundElement);
                Grid.SetColumnSpan(guideBackgroundElement, 5);
                Grid.SetRowSpan(guideBackgroundElement, 6);
            }
        }
Example #2
0
 /// <summary>
 /// GuidesManager Constructor
 /// </summary>
 /// <param name="root">root item of the main Dynamo Window </param>
 /// <param name="dynViewModel"></param>
 public GuidesManager(UIElement root, DynamoViewModel dynViewModel)
 {
     mainRootElement        = root;
     dynamoViewModel        = dynViewModel;
     guideBackgroundElement = Guide.FindChild(root, guideBackgroundName) as GuideBackground;
 }