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; }
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; } }
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(); } }