Click here to Skip to main content
15,888,968 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I've used Dock Panel suite from Winfluo to add a dock panel control to the Visual Studio 2005 tool box.

I created a new form ,dragged a dock panel to it , but it acts like a normal panel and I can't find any buttons or strips.
Anyone can help me with this control?
I don't have much experience with the code.
Posted
Updated 26-Aug-10 0:15am
v2
Comments
Christian Graus 26-Aug-10 5:52am    
Is this a third party library ? If so, do they not have documentation or forums for users ?
Marwan Saeed 26-Aug-10 5:59am    
it's winfluo library & i've submitted it but still don't work

ok I think for the Dock Panel you would have to manually do it in code if you're having difficulty with the GUI..Its something like this..

DockPanel myDock = new DockPanel();
myDock.LastChildFill=true; // This sets up the dock panel and fills up a child element on the remaining space

//but if u already have one set-up on the GUI, then you dont need to create a new dock panel, just call the instance and set the LastChildFill property to true

Border myBorder = new Border(); // Create a border for the Dock Panel
myBorder.[_Properties_]= [_Property Values_]; // Set properties you want like height, width..etc

//now this is the good part
//call instance member and set dock property

myDock.SetDock(myBorder,Dock.Fill);

// and I believe this is what you want to do..right?

// if it doesnt answer you question then re-phrase your question good and I would try to answer it again
 
Share this answer
 
Comments
Marwan Saeed 26-Aug-10 6:57am    
As i said , i don't have enough experience with the code so i don't know where to put your code in the structure so this is the code i have .. can you help me with this

namespace WindowsApplication1
{
partial class Form1
{
///
/// Required designer variable.
///

private System.ComponentModel.IContainer components = null;

///
/// Clean up any resources being used.
///

/// <param name="disposing" />true if managed resources should be disposed; otherwise, false.
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}

#region Windows Form Designer generated code

///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///

private void InitializeComponent()
{
WeifenLuo.WinFormsUI.Docking.DockPanelSkin dockPanelSkin1 = new WeifenLuo.WinFormsUI.Docking.DockPanelSkin();
WeifenLuo.WinFormsUI.Docking.AutoHideStripSkin autoHideStripSkin1 = new WeifenLuo.WinFormsUI.Docking.AutoHideStripSkin();
WeifenLuo.WinFormsUI.Docking.DockPanelGradient dockPanelGradient1 = new WeifenLuo.WinFormsUI.Docking.DockPanelGradient();
WeifenLuo.WinFormsUI.Docking.TabGradient tabGradient1 = new WeifenLuo.WinFormsUI.Docking.TabGradient();
WeifenLuo.WinFormsUI.Docking.DockPaneStripSkin dockPaneStripSkin1 = new WeifenLuo.WinFormsUI.Docking.DockPaneStripSkin();
WeifenLuo.WinFormsUI.Docking.DockPaneStripGradient dockPaneStripGradient1 = new WeifenLuo.WinFormsUI.Docking.DockPaneStripGradient();
WeifenLuo.WinFormsUI.Docking.TabGradient tabGradient2 = new WeifenLuo.WinFormsUI.Docking.TabGradient();
WeifenLuo.WinFormsUI.Docking.DockPanelGradient dockPanelGradient2 = new WeifenLuo.WinFormsUI.Docking.DockPanelGradient();
WeifenLuo.WinFormsUI.Docking.TabGradient tabGradient3 = new WeifenLuo.WinFormsUI.Docking.TabGradient();
WeifenLuo.WinFormsUI.Docking.DockPaneStripToolWindowGradient dockPaneStripToolWindowGradient1 = new WeifenLuo.WinFormsUI.Docking.DockPaneStripToolWindowGradient();
WeifenLuo.WinFormsUI.Docking.TabGradient tabGradient4 = new WeifenLuo.WinFormsUI.Docking.TabGradient();
WeifenLuo.WinFormsUI.Docking.TabGradient tabGradient5 = new WeifenLuo.WinFormsUI.Docking.TabGradient();
WeifenLuo.WinFormsUI.Docking.DockPanelGradient dockPanelGradient3 = new WeifenLuo.WinFormsUI.Docking.DockPanelGradient();
WeifenLuo.WinFormsUI.Docking.TabGradient tabGradient6 = new WeifenLuo.WinFormsUI.Docking.TabGradient();
WeifenLuo.WinFormsUI.Docking.TabGradient tabGradient7 = new WeifenLuo.WinFormsUI.Docking.TabGradient();
this.dockPanel1 = new WeifenLuo.WinFormsUI.Docking.DockPanel();
this.SuspendLayout();
//
// dockPanel1
//
this.dockPanel1.ActiveAutoHideContent = null;
this.dockPanel1.Dock = System.Windows.Forms.DockStyle.Right;
this.dockPanel1.DockBackColor = System.Drawing.SystemColors.Control;
this.dockPanel1.Location = new System.Drawing.Point(92, 0);
this.dockPanel1.Name = "dockPanel1";
this.dockPanel1.Size = new System.Drawing.Size(200, 266);
dockPanelGradient1.EndColor = System.Drawing.SystemColors.ControlLight;
dockPanelGradient1.StartColor = System.Drawing.SystemColors.ControlLight;
autoHideStripSkin1.DockStripGradient = dockPanelGradient1;
tabGradient1.EndColor = System.Drawing.SystemColors.Control;
tabGradient1.StartColor = System.Drawing.SystemColors.Control;
tabGra
God damn... I looked around couldn't find an answer as to how to set width/height of individual dock content/panes! Such obvious omission!
Further, how to set MyDocContentPane.Visible = False (You can hide the enable "DockPanel", but can't for individual panes!)
 
Share this answer
 
Comments
Member 8536311 12-Mar-12 4:51am    
HiI am facing the same issue, did you find any solution?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900