Exemplo n.º 1
0
        private void RadDocking_PaneStateChange(object sender, Telerik.Windows.RadRoutedEventArgs e)
        {
            var pane = e.OriginalSource as RadPane;

            if (pane != null && pane.IsFloating)
            {
                var toolWindow = pane.GetParentToolWindow() as ToolWindow;
                if (toolWindow != null)
                {
                    RadWindowInteropHelper.SetTitle(toolWindow, pane.Header.ToString());
                    switch (this.GetPaneType(pane))
                    {
                    case PaneType.Green:
                        RadWindowInteropHelper.SetIcon(toolWindow, new BitmapImage(new Uri("pack://application:,,,/FloatingPaneTaskbarIcons;component/Images/icon-green.png", UriKind.Absolute)));
                        break;

                    case PaneType.Blue:
                        RadWindowInteropHelper.SetIcon(toolWindow, new BitmapImage(new Uri("pack://application:,,,/FloatingPaneTaskbarIcons;component/Images/icon-blue.png", UriKind.Absolute)));
                        break;

                    default:
                        RadWindowInteropHelper.SetIcon(toolWindow, new BitmapImage(new Uri("pack://application:,,,/FloatingPaneTaskbarIcons;component/Images/icon-default.png", UriKind.Absolute)));
                        break;
                    }
                }
            }
        }
Exemplo n.º 2
0
 public ApplicationView(IApplicationShell applicationShell)
 {
     this.InitializeComponent();
     this.DataContext = applicationShell;
     RadWindowInteropHelper.SetShowInTaskbar(this, true);
     RadWindowInteropHelper.SetTitle(this, this.Header.ToString());
 }
        public NewWorkspaceInvestionWizardView()
        {
            this.InitializeComponent();

            RadWindowInteropHelper.SetShowInTaskbar(this, true);
            //RadWindowInteropHelper.SetTitle(this, this.Header.ToString());
        }
Exemplo n.º 4
0
 public SendEmailPreView(CorrespondenceModel correspondence, string message, string mainTemplate = null)
 {
     InitializeComponent();
     DataContext = _viewModel = new SendEmailPreViewModel(correspondence, message, mainTemplate);
     RadWindowInteropHelper.SetAllowTransparency(this, false);
     Loaded += SendEmailPreView_Loaded;
     Owner   = Application.Current.MainWindow;
 }
Exemplo n.º 5
0
        public override ToolWindow CreateToolWindow()
        {
            var window = base.CreateToolWindow();

            RadWindowInteropHelper.SetShowInTaskbar(window, true);
            RadWindowInteropHelper.SetIcon(window, new BitmapImage(new Uri("pack://application:,,,/FloatingPaneTaskbarIcons;component/Images/icon-default.png", UriKind.Absolute)));

            return(window);
        }
Exemplo n.º 6
0
        public override ToolWindow CreateToolWindow()
        {
            var window = base.CreateToolWindow();

            RadWindowInteropHelper.SetShowInTaskbar(window, true);
            RadWindowInteropHelper.SetIcon(window, new BitmapImage(new Uri("..\\..\\Images\\icon-default.png", UriKind.RelativeOrAbsolute)));

            return(window);
        }
        public override ToolWindow CreateToolWindow()
        {
            var window = base.CreateToolWindow();

            RadWindowInteropHelper.SetAllowTransparency(window, false);
            RadWindowInteropHelper.SetClipMaskCornerRadius(window, new CornerRadius(3));
            RadWindowInteropHelper.SetOpaqueWindowBackground(window, Brushes.LightGray);

            return(window);
        }
Exemplo n.º 8
0
        public ProtocolsRecognitionView(ProtocolsRecognitionContext context)
        {
            this.InitializeComponent();

            this._context = context;

            this.DataContext = this;

            RadWindowInteropHelper.SetShowInTaskbar(this, true);
            RadWindowInteropHelper.SetTitle(this, this.Header.ToString());
        }
Exemplo n.º 9
0
        public QueryableHelper(Type classType, string name)
        {
            this.InitializeComponent();

            this.Header = this.Header + " - " + name;

            RadWindowInteropHelper.SetShowInTaskbar(this, true);
            RadWindowInteropHelper.SetTitle(this, this.Header.ToString());

            this.DataContext = QueryableDumper.Dump(classType, name);
        }
Exemplo n.º 10
0
        private void RadButton_Click_5(object sender, RoutedEventArgs e)
        {
            RadWindow settingsDialog = new RadWindow();

            settingsDialog.Content               = new 数据恢复();
            settingsDialog.ResizeMode            = ResizeMode.CanResize;
            settingsDialog.Header                = "数据恢复";
            settingsDialog.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            settingsDialog.HideMinimizeButton    = false;
            settingsDialog.HideMaximizeButton    = false;
            settingsDialog.CanClose              = true;
            settingsDialog.Show();
            RadWindowInteropHelper.SetShowInTaskbar(settingsDialog, true);
        }
 public SettingsWindow()
 {
     this.InitializeComponent();
     RadWindowInteropHelper.SetShowInTaskbar(this, true);
 }
Exemplo n.º 12
0
 public TasksWindow()
 {
     this.InitializeComponent();
     RadWindowInteropHelper.SetShowInTaskbar(this, true);
     //RadWindowInteropHelper.SetTitle(this, this.Header.ToString());
 }