Exemplo n.º 1
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;
        }
Exemplo n.º 2
0
        private void OnWindowLoaded(object sender, RoutedEventArgs e)
        {
            // Retrieve the display pages...
            _svgPage  = frameSvgInput.Content as SvgPage;
            _xamlPage = frameXamlOutput.Content as XamlPage;

            if (_svgPage != null)
            {
                _svgPage.XamlPage = _xamlPage;
            }
        }
Exemplo n.º 3
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();
            }
        }