private static void ShowPrintPreviewDialog(RadDocument document, IDocumentFormatProvider provider) { PrintPreview printPreview = new PrintPreview(document, provider); RadWindow window = new RadWindow(); window.Content = printPreview; window.Header = "Print Preview"; window.Height = 400; window.Width = 500; #if SILVERLIGHT window.WindowStartupLocation = Telerik.Windows.Controls.WindowStartupLocation.CenterScreen; #else window.WindowStartupLocation = WindowStartupLocation.CenterScreen; #endif window.Show(); }