Пример #1
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            var win = new RadWindow()
            {
                Header = "Flie Explorer"
            };

            win.Activated += Win_Activated;
            /*win.IconTemplate = this.Resources["EditorWindowIconTemplate"] as DataTemplate;*/
            Taskbar.ShowInTaskbar(win, "Flie Explorer", "Explorer.ico");
            win.Content = new FileExplorer();
            win.Show();
        }
Пример #2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            var win = new RadWindow()
            {
                Header = "Image Editor"
            };

            win.Activated += Win_Activated;
            //win.IconTemplate = this.Resources["EditorWindowIconTemplate"] as DataTemplate;
            Taskbar.ShowInTaskbar(win, "Image Editor", "Editor.ico");
            win.Content = new ImageEditor();

            win.Show();
        }
Пример #3
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();
        }
Пример #4
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();
        }