I have a Winforms that uses Ultradockpanel and ultraformmanager.
The main requirement is to have the Ultradockpanel docked at left but below a top panel (header). For this I was reading that you have to use UltraDockPanel, so I created an UltraDockPanel added into Controls form and seems that worked fine, but when I added the UltraFormManager then this UltraDockPanel goes on top of the Form.
Any clue on how to make that panel goes on top of the inside form and not outside?
Seems not be exactly what I need Michael, Im attaching the same project, just added a form with the sample issue. You will see it if you run it.
https://filebin.net/epm17nmf4cs0yg8w
Appreciate, hope you can find a way because is killing me
Any way, you can create a new form and just update the designer code with the following:
partial class Form1 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); Infragistics.Win.Appearance appearance1 = new Infragistics.Win.Appearance(); Infragistics.Win.UltraWinDock.DockAreaPane dockAreaPane1 = new Infragistics.Win.UltraWinDock.DockAreaPane(Infragistics.Win.UltraWinDock.DockedLocation.DockedLeft, new System.Guid("e1bd5ccf-51a3-4aa4-935d-66140ea55574")); Infragistics.Win.UltraWinDock.DockableControlPane dockableControlPane1 = new Infragistics.Win.UltraWinDock.DockableControlPane(new System.Guid("8afd5bdb-acee-4459-8678-16382da971b0"), new System.Guid("562b09f9-de92-4bbb-bddd-9cb12f4a4c52"), 0, new System.Guid("e1bd5ccf-51a3-4aa4-935d-66140ea55574"), 0); Infragistics.Win.UltraWinDock.DockAreaPane dockAreaPane2 = new Infragistics.Win.UltraWinDock.DockAreaPane(Infragistics.Win.UltraWinDock.DockedLocation.Floating, new System.Guid("562b09f9-de92-4bbb-bddd-9cb12f4a4c52")); Infragistics.Win.Appearance appearance2 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance3 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance4 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance5 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance6 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance7 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance8 = new Infragistics.Win.Appearance(); this.panel3 = new System.Windows.Forms.Panel(); this.pnlMain = new System.Windows.Forms.Panel(); this.ultraPanel2 = new Infragistics.Win.Misc.UltraPanel(); this.ultraDockManager1 = new Infragistics.Win.UltraWinDock.UltraDockManager(this.components); this._Form1UnpinnedTabAreaLeft = new Infragistics.Win.UltraWinDock.UnpinnedTabArea(); this._Form1UnpinnedTabAreaRight = new Infragistics.Win.UltraWinDock.UnpinnedTabArea(); this._Form1UnpinnedTabAreaTop = new Infragistics.Win.UltraWinDock.UnpinnedTabArea(); this._Form1UnpinnedTabAreaBottom = new Infragistics.Win.UltraWinDock.UnpinnedTabArea(); this._Form1AutoHideControl = new Infragistics.Win.UltraWinDock.AutoHideControl(); this.outerDockPanel = new Infragistics.Win.OuterDockPanel(); this.ultraFormManager1 = new Infragistics.Win.UltraWinForm.UltraFormManager(this.components); this.ultraFormDockArea1 = new Infragistics.Win.UltraWinForm.UltraFormDockArea(); this.ultraFormDockArea2 = new Infragistics.Win.UltraWinForm.UltraFormDockArea(); this.ultraFormDockArea3 = new Infragistics.Win.UltraWinForm.UltraFormDockArea(); this.ultraFormDockArea4 = new Infragistics.Win.UltraWinForm.UltraFormDockArea(); this.windowDockingArea1 = new Infragistics.Win.UltraWinDock.WindowDockingArea(); this.dockableWindow1 = new Infragistics.Win.UltraWinDock.DockableWindow(); this.windowDockingArea2 = new Infragistics.Win.UltraWinDock.WindowDockingArea(); this.pnlMain.SuspendLayout(); this.ultraPanel2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.ultraDockManager1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.ultraFormManager1)).BeginInit(); this.windowDockingArea1.SuspendLayout(); this.dockableWindow1.SuspendLayout(); this.SuspendLayout(); // // panel3 // this.panel3.BackColor = System.Drawing.SystemColors.ActiveCaption; this.panel3.Dock = System.Windows.Forms.DockStyle.Left; this.panel3.Location = new System.Drawing.Point(0, 18); this.panel3.Name = "panel3"; this.panel3.Size = new System.Drawing.Size(95, 352); this.panel3.TabIndex = 1; // // pnlMain // this.pnlMain.Controls.Add(this.ultraPanel2); this.pnlMain.Dock = System.Windows.Forms.DockStyle.Fill; this.pnlMain.Location = new System.Drawing.Point(101, 79); this.pnlMain.Name = "pnlMain"; this.pnlMain.Size = new System.Drawing.Size(698, 370); this.pnlMain.TabIndex = 0; // // ultraPanel2 // appearance1.BackColor = System.Drawing.Color.Yellow; appearance1.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128))))); this.ultraPanel2.Appearance = appearance1; this.ultraPanel2.Dock = System.Windows.Forms.DockStyle.Top; this.ultraPanel2.Location = new System.Drawing.Point(0, 0); this.ultraPanel2.Name = "ultraPanel2"; this.ultraPanel2.Size = new System.Drawing.Size(698, 51); this.ultraPanel2.TabIndex = 0; // // ultraDockManager1 // this.ultraDockManager1.CompressUnpinnedTabs = false; dockAreaPane1.DockedBefore = new System.Guid("562b09f9-de92-4bbb-bddd-9cb12f4a4c52"); dockableControlPane1.Control = this.panel3; dockableControlPane1.OriginalControlBounds = new System.Drawing.Rectangle(0, 43, 144, 407); dockableControlPane1.Size = new System.Drawing.Size(100, 100); dockableControlPane1.Text = "panel3"; dockAreaPane1.Panes.AddRange(new Infragistics.Win.UltraWinDock.DockablePaneBase[] { dockableControlPane1}); dockAreaPane1.Size = new System.Drawing.Size(95, 370); dockAreaPane2.FloatingLocation = new System.Drawing.Point(201, 265); dockAreaPane2.Size = new System.Drawing.Size(95, 450); this.ultraDockManager1.DockAreas.AddRange(new Infragistics.Win.UltraWinDock.DockAreaPane[] { dockAreaPane1, dockAreaPane2}); this.ultraDockManager1.HostControl = this; // // _Form1UnpinnedTabAreaLeft // this._Form1UnpinnedTabAreaLeft.Dock = System.Windows.Forms.DockStyle.Left; this._Form1UnpinnedTabAreaLeft.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this._Form1UnpinnedTabAreaLeft.Location = new System.Drawing.Point(1, 79); this._Form1UnpinnedTabAreaLeft.Name = "_Form1UnpinnedTabAreaLeft"; this._Form1UnpinnedTabAreaLeft.Owner = this.ultraDockManager1; this._Form1UnpinnedTabAreaLeft.RightToLeft = System.Windows.Forms.RightToLeft.No; this._Form1UnpinnedTabAreaLeft.Size = new System.Drawing.Size(0, 370); this._Form1UnpinnedTabAreaLeft.TabIndex = 1; // // _Form1UnpinnedTabAreaRight // this._Form1UnpinnedTabAreaRight.Dock = System.Windows.Forms.DockStyle.Right; this._Form1UnpinnedTabAreaRight.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this._Form1UnpinnedTabAreaRight.Location = new System.Drawing.Point(799, 79); this._Form1UnpinnedTabAreaRight.Name = "_Form1UnpinnedTabAreaRight"; this._Form1UnpinnedTabAreaRight.Owner = this.ultraDockManager1; this._Form1UnpinnedTabAreaRight.RightToLeft = System.Windows.Forms.RightToLeft.No; this._Form1UnpinnedTabAreaRight.Size = new System.Drawing.Size(0, 370); this._Form1UnpinnedTabAreaRight.TabIndex = 2; // // _Form1UnpinnedTabAreaTop // this._Form1UnpinnedTabAreaTop.Dock = System.Windows.Forms.DockStyle.Top; this._Form1UnpinnedTabAreaTop.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this._Form1UnpinnedTabAreaTop.Location = new System.Drawing.Point(1, 79); this._Form1UnpinnedTabAreaTop.Name = "_Form1UnpinnedTabAreaTop"; this._Form1UnpinnedTabAreaTop.Owner = this.ultraDockManager1; this._Form1UnpinnedTabAreaTop.RightToLeft = System.Windows.Forms.RightToLeft.No; this._Form1UnpinnedTabAreaTop.Size = new System.Drawing.Size(798, 0); this._Form1UnpinnedTabAreaTop.TabIndex = 3; // // _Form1UnpinnedTabAreaBottom // this._Form1UnpinnedTabAreaBottom.Dock = System.Windows.Forms.DockStyle.Bottom; this._Form1UnpinnedTabAreaBottom.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this._Form1UnpinnedTabAreaBottom.Location = new System.Drawing.Point(1, 449); this._Form1UnpinnedTabAreaBottom.Name = "_Form1UnpinnedTabAreaBottom"; this._Form1UnpinnedTabAreaBottom.Owner = this.ultraDockManager1; this._Form1UnpinnedTabAreaBottom.RightToLeft = System.Windows.Forms.RightToLeft.No; this._Form1UnpinnedTabAreaBottom.Size = new System.Drawing.Size(798, 0); this._Form1UnpinnedTabAreaBottom.TabIndex = 4; // // _Form1AutoHideControl // this._Form1AutoHideControl.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this._Form1AutoHideControl.Location = new System.Drawing.Point(21, 0); this._Form1AutoHideControl.Name = "_Form1AutoHideControl"; this._Form1AutoHideControl.Owner = this.ultraDockManager1; this._Form1AutoHideControl.RightToLeft = System.Windows.Forms.RightToLeft.No; this._Form1AutoHideControl.Size = new System.Drawing.Size(10, 450); this._Form1AutoHideControl.TabIndex = 5; // // outerDockPanel // this.outerDockPanel.BackColor = System.Drawing.SystemColors.Window; this.outerDockPanel.Dock = System.Windows.Forms.DockStyle.Top; this.outerDockPanel.Location = new System.Drawing.Point(0, 0); this.outerDockPanel.Name = "outerDockPanel"; this.outerDockPanel.RightToLeft = System.Windows.Forms.RightToLeft.No; this.outerDockPanel.Size = new System.Drawing.Size(800, 48); this.outerDockPanel.TabIndex = 50; // // ultraFormManager1 // this.ultraFormManager1.Form = this; appearance2.ForeColor = System.Drawing.Color.White; this.ultraFormManager1.FormStyleSettings.CaptionAreaActiveAppearance = appearance2; appearance3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(46)))), ((int)(((byte)(64))))); this.ultraFormManager1.FormStyleSettings.CaptionAreaAppearance = appearance3; appearance4.ForeColor = System.Drawing.Color.White; this.ultraFormManager1.FormStyleSettings.CaptionButtonsAppearances.DefaultButtonAppearances.Appearance = appearance4; appearance5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(193)))), ((int)(((byte)(247))))); this.ultraFormManager1.FormStyleSettings.CaptionButtonsAppearances.DefaultButtonAppearances.HotTrackAppearance = appearance5; appearance6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(82)))), ((int)(((byte)(144)))), ((int)(((byte)(195))))); this.ultraFormManager1.FormStyleSettings.CaptionButtonsAppearances.DefaultButtonAppearances.PressedAppearance = appearance6; appearance7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(193)))), ((int)(((byte)(247))))); appearance7.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(193)))), ((int)(((byte)(247))))); appearance7.BorderColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(193)))), ((int)(((byte)(247))))); this.ultraFormManager1.FormStyleSettings.DefaultCaptionButtonsAppearances.DefaultButtonAppearances.HotTrackAppearance = appearance7; appearance8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(82)))), ((int)(((byte)(144)))), ((int)(((byte)(195))))); appearance8.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(82)))), ((int)(((byte)(144)))), ((int)(((byte)(195))))); appearance8.BorderColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(82)))), ((int)(((byte)(144)))), ((int)(((byte)(195))))); this.ultraFormManager1.FormStyleSettings.DefaultCaptionButtonsAppearances.DefaultButtonAppearances.PressedAppearance = appearance8; this.ultraFormManager1.FormStyleSettings.Style = Infragistics.Win.UltraWinForm.UltraFormStyle.Office2013; this.ultraFormManager1.UseAppStyling = false; // // ultraFormDockArea1 // this.ultraFormDockArea1.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping; this.ultraFormDockArea1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(46)))), ((int)(((byte)(64))))); this.ultraFormDockArea1.DockedPosition = Infragistics.Win.UltraWinForm.DockedPosition.Top; this.ultraFormDockArea1.ForeColor = System.Drawing.SystemColors.ControlText; this.ultraFormDockArea1.FormManager = this.ultraFormManager1; this.ultraFormDockArea1.Location = new System.Drawing.Point(0, 48); this.ultraFormDockArea1.Name = "ultraFormDockArea1"; this.ultraFormDockArea1.Size = new System.Drawing.Size(800, 31); this.ultraFormDockArea1.UseAppStyling = false; // // ultraFormDockArea2 // this.ultraFormDockArea2.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping; this.ultraFormDockArea2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(46)))), ((int)(((byte)(64))))); this.ultraFormDockArea2.DockedPosition = Infragistics.Win.UltraWinForm.DockedPosition.Bottom; this.ultraFormDockArea2.ForeColor = System.Drawing.SystemColors.ControlText; this.ultraFormDockArea2.FormManager = this.ultraFormManager1; this.ultraFormDockArea2.InitialResizeAreaExtent = 1; this.ultraFormDockArea2.Location = new System.Drawing.Point(0, 449); this.ultraFormDockArea2.Name = "ultraFormDockArea2"; this.ultraFormDockArea2.Size = new System.Drawing.Size(800, 1); this.ultraFormDockArea2.UseAppStyling = false; // // ultraFormDockArea3 // this.ultraFormDockArea3.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping; this.ultraFormDockArea3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(46)))), ((int)(((byte)(64))))); this.ultraFormDockArea3.DockedPosition = Infragistics.Win.UltraWinForm.DockedPosition.Left; this.ultraFormDockArea3.ForeColor = System.Drawing.SystemColors.ControlText; this.ultraFormDockArea3.FormManager = this.ultraFormManager1; this.ultraFormDockArea3.InitialResizeAreaExtent = 1; this.ultraFormDockArea3.Location = new System.Drawing.Point(0, 79); this.ultraFormDockArea3.Name = "ultraFormDockArea3"; this.ultraFormDockArea3.Size = new System.Drawing.Size(1, 370); this.ultraFormDockArea3.UseAppStyling = false; // // ultraFormDockArea4 // this.ultraFormDockArea4.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping; this.ultraFormDockArea4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(46)))), ((int)(((byte)(64))))); this.ultraFormDockArea4.DockedPosition = Infragistics.Win.UltraWinForm.DockedPosition.Right; this.ultraFormDockArea4.ForeColor = System.Drawing.SystemColors.ControlText; this.ultraFormDockArea4.FormManager = this.ultraFormManager1; this.ultraFormDockArea4.InitialResizeAreaExtent = 1; this.ultraFormDockArea4.Location = new System.Drawing.Point(799, 79); this.ultraFormDockArea4.Name = "ultraFormDockArea4"; this.ultraFormDockArea4.Size = new System.Drawing.Size(1, 370); this.ultraFormDockArea4.UseAppStyling = false; // // windowDockingArea1 // this.windowDockingArea1.Controls.Add(this.dockableWindow1); this.windowDockingArea1.Dock = System.Windows.Forms.DockStyle.Left; this.windowDockingArea1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.windowDockingArea1.Location = new System.Drawing.Point(1, 79); this.windowDockingArea1.Name = "windowDockingArea1"; this.windowDockingArea1.Owner = this.ultraDockManager1; this.windowDockingArea1.RightToLeft = System.Windows.Forms.RightToLeft.No; this.windowDockingArea1.Size = new System.Drawing.Size(100, 370); this.windowDockingArea1.TabIndex = 0; // // dockableWindow1 // this.dockableWindow1.Controls.Add(this.panel3); this.dockableWindow1.Location = new System.Drawing.Point(0, 0); this.dockableWindow1.Name = "dockableWindow1"; this.dockableWindow1.Owner = this.ultraDockManager1; this.dockableWindow1.Size = new System.Drawing.Size(95, 370); this.dockableWindow1.TabIndex = 51; // // windowDockingArea2 // this.windowDockingArea2.Dock = System.Windows.Forms.DockStyle.Fill; this.windowDockingArea2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.windowDockingArea2.Location = new System.Drawing.Point(1, 79); this.windowDockingArea2.Name = "windowDockingArea2"; this.windowDockingArea2.Owner = this.ultraDockManager1; this.windowDockingArea2.RightToLeft = System.Windows.Forms.RightToLeft.No; this.windowDockingArea2.Size = new System.Drawing.Size(95, 450); this.windowDockingArea2.TabIndex = 0; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(800, 450); this.Controls.Add(this._Form1AutoHideControl); this.Controls.Add(this.pnlMain); this.Controls.Add(this.windowDockingArea1); this.Controls.Add(this._Form1UnpinnedTabAreaBottom); this.Controls.Add(this._Form1UnpinnedTabAreaTop); this.Controls.Add(this._Form1UnpinnedTabAreaRight); this.Controls.Add(this._Form1UnpinnedTabAreaLeft); this.Controls.Add(this.ultraFormDockArea3); this.Controls.Add(this.ultraFormDockArea4); this.Controls.Add(this.ultraFormDockArea1); this.Controls.Add(this.ultraFormDockArea2); this.Controls.Add(this.outerDockPanel); this.Name = "Form1"; this.Text = "Form1"; this.pnlMain.ResumeLayout(false); this.ultraPanel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.ultraDockManager1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.ultraFormManager1)).EndInit(); this.windowDockingArea1.ResumeLayout(false); this.dockableWindow1.ResumeLayout(false); this.ResumeLayout(false); } #endregion private System.Windows.Forms.Panel pnlMain; private System.Windows.Forms.Panel panel3; private Infragistics.Win.UltraWinDock.UltraDockManager ultraDockManager1; private Infragistics.Win.UltraWinDock.AutoHideControl _Form1AutoHideControl; private Infragistics.Win.UltraWinDock.UnpinnedTabArea _Form1UnpinnedTabAreaBottom; private Infragistics.Win.UltraWinDock.UnpinnedTabArea _Form1UnpinnedTabAreaTop; private Infragistics.Win.UltraWinDock.UnpinnedTabArea _Form1UnpinnedTabAreaRight; private Infragistics.Win.UltraWinDock.UnpinnedTabArea _Form1UnpinnedTabAreaLeft; private UltraPanel ultraPanel2; private OuterDockPanel outerDockPanel; private Infragistics.Win.UltraWinDock.WindowDockingArea windowDockingArea1; private Infragistics.Win.UltraWinDock.DockableWindow dockableWindow1; private Infragistics.Win.UltraWinForm.UltraFormDockArea ultraFormDockArea3; private Infragistics.Win.UltraWinForm.UltraFormManager ultraFormManager1; private Infragistics.Win.UltraWinForm.UltraFormDockArea ultraFormDockArea4; private Infragistics.Win.UltraWinForm.UltraFormDockArea ultraFormDockArea1; private Infragistics.Win.UltraWinForm.UltraFormDockArea ultraFormDockArea2; private Infragistics.Win.UltraWinDock.WindowDockingArea windowDockingArea2; }
Hello and thank you for contacting Infragistics. Please review the sample attached. You can move the UltraTree panel everywhere within dockmanager, below the toolbar. If this does not meet your requirements, please modify the sample and reattach it.
FormToolbarsAndDockManagers (demo).zip