Пример #1
0
        /// <summary>
        /// Initializes a new instance of the AdvPropertyGrid class.
        /// </summary>
        public AdvPropertyGrid()
        {
            _SystemText = new AdvPropertyGridLocalization();
            _SystemText.PropertyChanged += new PropertyChangedEventHandler(SystemTextPropertyChanged);

            _Appearance = new AdvPropertyGridAppearance();
            _Appearance.PropertyChanged += new PropertyChangedEventHandler(AppearancePropertyChanged);

            _PropertySettings = new PropertySettingsCollection(this);

            _Toolbar = CreateToolbar();
            _PropertyTree = CreatePropertyTree();
            _SuperTooltip = CreateSuperTooltip();
            _ExpandableSplitter = CreateExpandableSplitter();
            _HelpPanel = CreateHelpPanel();
            _ExpandableSplitter.ExpandableControl = _HelpPanel;

            this.Controls.Add(_PropertyTree);
            this.Controls.Add(_Toolbar);
            this.Controls.Add(_ExpandableSplitter);
            this.Controls.Add(_HelpPanel);
            _ExpandableSplitter.Visible = false;
            _HelpPanel.Visible = false;
        }
Пример #2
0
 private PanelControl CreateHelpPanel()
 {
     PanelControl panel = new PanelControl();
     panel.Dock = DockStyle.Bottom;
     panel.Height = 42;
     panel.ApplyPanelStyle(eDotNetBarStyle.Office2007);
     panel.Style.BackColor = Color.White;
     panel.Style.BackColor2 = Color.Empty;
     panel.Style.TextColor = Color.Black;
     panel.Style.WordWrap = true;
     panel.Style.TextAlignment = eStyleTextAlignment.Near;
     return panel;
 }
Пример #3
0
        /// <summary> 
		/// Required method for Designer support - do not modify 
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
            this.panelHeader = new DevComponents.DotNetBar.PanelControl();
            this.pictureHeader = new System.Windows.Forms.PictureBox();
            this.labelDescription = new System.Windows.Forms.Label();
            this.labelCaption = new System.Windows.Forms.Label();
            this.panelFooter = new DevComponents.DotNetBar.PanelControl();
            this.buttonHelp = new ButtonX();
            this.buttonCancel = new ButtonX();
            this.buttonFinish = new ButtonX();
            this.buttonNext = new ButtonX();
            this.buttonBack = new ButtonX();
            this.panelHeader.SuspendLayout();
            this.panelFooter.SuspendLayout();
            this.SuspendLayout();
            // 
            // panelHeader
            // 
            this.panelHeader.AntiAlias=false;
            this.panelHeader.BackColor = Color.Transparent;
			this.panelHeader.CanvasColor = System.Drawing.SystemColors.Control;
            this.panelHeader.Controls.Add(this.pictureHeader);
            this.panelHeader.Controls.Add(this.labelDescription);
            this.panelHeader.Controls.Add(this.labelCaption);
            this.panelHeader.Dock = System.Windows.Forms.DockStyle.Top;
            this.panelHeader.Location = new System.Drawing.Point(0, 0);
            this.panelHeader.Name = "panelHeader";
            this.panelHeader.Size = new System.Drawing.Size(548, 60);
            // 
            // 
            // 
            this.panelHeader.Style.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
            this.panelHeader.Style.BackColorGradientAngle = 90;
            this.panelHeader.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Etched;
            this.panelHeader.Style.BorderBottomWidth = 1;
            this.panelHeader.Style.BorderColor = System.Drawing.SystemColors.Control;
            this.panelHeader.Style.BorderLeftWidth = 1;
            this.panelHeader.Style.BorderRightWidth = 1;
            this.panelHeader.Style.BorderTopWidth = 1;
            this.panelHeader.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center;
            this.panelHeader.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
            this.panelHeader.TabIndex = 5;
            // 
            // pictureHeader
            // 
            this.pictureHeader.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.pictureHeader.Location = new System.Drawing.Point(496, 6);
            this.pictureHeader.Name = "pictureHeader";
            this.pictureHeader.Size = new System.Drawing.Size(48, 48);
            this.pictureHeader.TabIndex = 7;
            this.pictureHeader.TabStop = false;
            // 
            // labelDescription
            // 
            this.labelDescription.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.labelDescription.Location = new System.Drawing.Point(44, 22);
            this.labelDescription.Name = "labelDescription";
            this.labelDescription.Size = new System.Drawing.Size(446, 32);
            this.labelDescription.TabIndex = 1;
            // 
            // labelCaption
            // 
            this.labelCaption.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.labelCaption.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.labelCaption.Location = new System.Drawing.Point(16, 5);
            this.labelCaption.Name = "labelCaption";
            this.labelCaption.Size = new System.Drawing.Size(474, 17);
            this.labelCaption.TabIndex = 0;
            // 
            // panelFooter
            // 
			this.panelFooter.BackColor = System.Drawing.SystemColors.Control;
			this.panelFooter.CanvasColor = System.Drawing.SystemColors.Control;
            this.panelFooter.Controls.Add(this.buttonHelp);
            this.panelFooter.Controls.Add(this.buttonCancel);
            this.panelFooter.Controls.Add(this.buttonFinish);
            this.panelFooter.Controls.Add(this.buttonNext);
            this.panelFooter.Controls.Add(this.buttonBack);
            this.panelFooter.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.panelFooter.Location = new System.Drawing.Point(0, 329);
            this.panelFooter.Name = "panelFooter";
            this.panelFooter.Size = new System.Drawing.Size(548, 46);
			this.panelFooter.AntiAlias = false;
            // 
            // 
            // 
            this.panelFooter.TabIndex = 6;
            this.panelFooter.Resize += new System.EventHandler(this.panelFooter_Resize);
            // 
            // buttonHelp
            // 
            this.buttonHelp.CausesValidation = false;
            this.buttonHelp.Location = new System.Drawing.Point(462, 13);
            this.buttonHelp.Name = "buttonHelp";
            this.buttonHelp.Size = new System.Drawing.Size(74, 22);
            this.buttonHelp.TabIndex = 5;
            this.buttonHelp.Text = "Help";
            this.buttonHelp.VisibleChanged += new System.EventHandler(this.CommandButtonVisibleChanged);
            this.buttonHelp.Click += new System.EventHandler(this.buttonHelp_Click);
            this.buttonHelp.ThemeAware = true;
            this.buttonHelp.Style = eDotNetBarStyle.Office2000;
            this.buttonHelp.ColorTable = eButtonColor.Office2007WithBackground;
            // 
            // buttonCancel
            // 
            this.buttonCancel.CausesValidation = false;
            this.buttonCancel.Location = new System.Drawing.Point(382, 13);
            this.buttonCancel.Name = "buttonCancel";
            this.buttonCancel.Size = new System.Drawing.Size(74, 22);
            this.buttonCancel.TabIndex = 4;
            this.buttonCancel.Text = "Cancel";
            this.buttonCancel.VisibleChanged += new System.EventHandler(this.CommandButtonVisibleChanged);
            this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
            this.buttonCancel.ThemeAware = true;
            this.buttonCancel.Style = eDotNetBarStyle.Office2000;
            this.buttonCancel.ColorTable = eButtonColor.Office2007WithBackground;
            // 
            // buttonFinish
            // 
            this.buttonFinish.Location = new System.Drawing.Point(148, 13);
            this.buttonFinish.Name = "buttonFinish";
            this.buttonFinish.Size = new System.Drawing.Size(74, 22);
            this.buttonFinish.TabIndex = 3;
            this.buttonFinish.Text = "Finish";
            this.buttonFinish.VisibleChanged += new System.EventHandler(this.CommandButtonVisibleChanged);
            this.buttonFinish.Click += new System.EventHandler(this.buttonFinish_Click);
            this.buttonFinish.ThemeAware = true;
            this.buttonFinish.Style = eDotNetBarStyle.Office2000;
            this.buttonFinish.ColorTable = eButtonColor.Office2007WithBackground;
            // 
            // buttonNext
            // 
            this.buttonNext.Location = new System.Drawing.Point(302, 13);
            this.buttonNext.Name = "buttonNext";
            this.buttonNext.Size = new System.Drawing.Size(74, 22);
            this.buttonNext.TabIndex = 2;
            this.buttonNext.Text = "Next >";
            this.buttonNext.VisibleChanged += new System.EventHandler(this.CommandButtonVisibleChanged);
            this.buttonNext.Click += new System.EventHandler(this.buttonNext_Click);
            this.buttonNext.ThemeAware = true;
            this.buttonNext.Style = eDotNetBarStyle.Office2000;
            this.buttonNext.ColorTable = eButtonColor.Office2007WithBackground;
            // 
            // buttonBack
            // 
            this.buttonBack.CausesValidation = false;
            this.buttonBack.Location = new System.Drawing.Point(228, 13);
            this.buttonBack.Name = "buttonBack";
            this.buttonBack.Size = new System.Drawing.Size(74, 22);
            this.buttonBack.TabIndex = 1;
            this.buttonBack.Text = "< Back";
            this.buttonBack.VisibleChanged += new System.EventHandler(this.CommandButtonVisibleChanged);
            this.buttonBack.Click += new System.EventHandler(this.buttonBack_Click);
            this.buttonBack.ThemeAware = true;
            this.buttonBack.Style = eDotNetBarStyle.Office2000;
            this.buttonBack.ColorTable = eButtonColor.Office2007WithBackground;
            // 
            // Wizard
            // 
            this.Controls.Add(this.panelHeader);
            this.Controls.Add(this.panelFooter);
            this.Name = "Wizard";
            this.Size = new System.Drawing.Size(548, 375);
            this.panelHeader.ResumeLayout(false);
            this.panelFooter.ResumeLayout(false);
            this.ResumeLayout(false);

		}