Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="InteractiveWindow"/> class.
        /// </summary>
        public InteractiveWindow()
        {
            // Set window look
            ShowInTaskbar = false;
            Title         = WindowTitle;

            // Add content
            Grid grid = new Grid();

            Content        = grid;
            ContentControl = new InteractiveWindowContent(new InteractiveExecutionInitialization());
            ContentControl.TextEditor.CloseRequested += TextEditor_CloseRequested;
            grid.Children.Add(ContentControl);
        }
Example #2
0
 public InteractiveResultVisualizer(InteractiveWindowContent interactiveWindowContent)
 {
     this.interactiveWindowContent = interactiveWindowContent;
     dispatcher = interactiveWindowContent?.Dispatcher ?? System.Windows.Threading.Dispatcher.CurrentDispatcher;
 }