コード例 #1
0
 private void OnWindowClosing(object sender, CancelEventArgs e)
 {
     if (_debugPage != null)
     {
         _debugPage.Startup();
     }
 }
コード例 #2
0
        private void OnWindowLoaded(object sender, RoutedEventArgs e)
        {
            // Retrieve the display pages...
            _svgPage      = frameSvgInput.Content as SvgPage;
            _xamlPage     = frameXamlOutput.Content as XamlPage;
            _debugPage    = frameDebugging.Content as DebugPage;
            _settingsPage = frameSettings.Content as SettingsPage;

            if (_svgPage != null && _xamlPage != null)
            {
                _svgPage.XamlPage = _xamlPage;
            }

            if (_svgPage != null && _settingsPage != null)
            {
                _settingsPage.SvgPage = _svgPage;
            }

            if (_debugPage != null)
            {
                _debugPage.Startup();
            }

            tabSvgInput.IsSelected = true;
        }
コード例 #3
0
 public void WindowLoaded(object sender, RoutedEventArgs e)
 {
     if (_debugPage != null)
     {
         if (!_debugPage.IsTraceStarted)
         {
             _debugPage.Startup();
         }
     }
 }
コード例 #4
0
        public void ContentRendered(object sender, EventArgs e)
        {
            if (_isShown)
            {
                return;
            }
            _isShown = true;

            // Retrieve the display pages...
            _svgPage      = frameSvgInput.Content as SvgPage;
            _xamlPage     = frameXamlOutput.Content as XamlPage;
            _debugPage    = frameDebugging.Content as DebugPage;
            _settingsPage = frameSettings.Content as SettingsPage;

            if (_svgPage != null && _xamlPage != null)
            {
                _svgPage.XamlPage = _xamlPage;
            }

            if (_svgPage != null && _settingsPage != null)
            {
                _settingsPage.SvgPage = _svgPage;
            }

            if (_debugPage != null)
            {
                if (!_debugPage.IsTraceStarted)
                {
                    _debugPage.Startup();
                }
            }

            if (_svgPage != null)
            {
                _svgPage.InitializeDocument();
            }
        }