Example #1
0
        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            var win = new RadWindow()
            {
                Header = "Pdf Veiwer"
            };

            win.Activated += Win_Activated;
            win.Icon       = new Image()
            {
                Source = ImageExampleHelper.LoadImage("PDF.ico")
            };
            //win.IconTemplate = this.Resources["PdfWindowIconTemplate"] as DataTemplate;
            Taskbar.ShowInTaskbar(win, "Pdf Veiwer", "Pdf.ico");//ImageExampleHelper.LoadImage("PDF.ico")
            win.Content = new PdfViewer();
            win.Show();
        }
Example #2
0
        private void Button_Click_3(object sender, RoutedEventArgs e)
        {
            var win = new RadWindow()
            {
                Header = "Diagrams",
                Left   = SystemParameters.WorkArea.Left,
                Top    = SystemParameters.WorkArea.Top,
                Height = SystemParameters.WorkArea.Height,
                Width  = SystemParameters.WorkArea.Width
            };

            win.Activated += Win_Activated;
            win.Icon       = new Image()
            {
                Source = ImageExampleHelper.LoadImage("Diagrams.ico")
            };
            //win.IconTemplate = this.Resources["PdfWindowIconTemplate"] as DataTemplate;
            Taskbar.ShowInTaskbar(win, "Diagrams", "Diagrams.ico");//ImageExampleHelper.LoadImage("PDF.ico")
            win.Content = new Diagrams1();
            win.Show();
        }