Example #1
0
 public ApplicationView(IApplicationShell applicationShell)
 {
     this.InitializeComponent();
     this.DataContext = applicationShell;
     RadWindowInteropHelper.SetShowInTaskbar(this, true);
     RadWindowInteropHelper.SetTitle(this, this.Header.ToString());
 }
Example #2
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;
                    }
                }
            }
        }
Example #3
0
        public ProtocolsRecognitionView(ProtocolsRecognitionContext context)
        {
            this.InitializeComponent();

            this._context = context;

            this.DataContext = this;

            RadWindowInteropHelper.SetShowInTaskbar(this, true);
            RadWindowInteropHelper.SetTitle(this, this.Header.ToString());
        }
Example #4
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);
        }