DockableWindows Manual

//Define a Dockable Window Class


public partial class frmHorizontal : DockingWindows.DockableWindow
{
    public frmHorizontal()
    {
        InitializeComponent();
    }
}

//Using a Dockable Window Non Modal


private void button1_Click(object sender, EventArgs e)
{
    //THIS CAN BE SET AT RUNTIME OR
    //DESIGN TIME ON A DOCKABLE WINDOW
    frmTopDock.DockingPosition = DockingWindows.DockableWindow.DockingPositions.TopInterior;

    //IF THE WINDOW IS HIDDEN THEN SHOW IT
    //OTHERWISE HIDE IT.
    //USE THIS TO TELL THE WINDOW
    //WHICH WINDOW TO DOCK TO
    if (frmTopDock.Visible == false)
        frmTopDock.Show(this);
    else
        frmTopDock.Hide();
}

//Using a Dockable Window Modal


private void button1_Click(object sender, EventArgs e)
{
    //THIS CAN BE SET AT RUNTIME OR
    //DESIGN TIME ON A DOCKABLE WINDOW
    frmTopDock.DockingPosition = DockingWindows.DockableWindow.DockingPositions.TopExterior;

    //AGAIN THIS LIBRARY WAS MEANT TO BE SIMPLE
    //SO USE THE SAME CALL YOU WOULD NORMALLY
    frmTopDock.ShowDialog(this);
}

//Docking a Dockable Window To a Control


private void button1_Click(object sender, EventArgs e)
{
    //THIS CAN BE SET AT RUNTIME OR
    //DESIGN TIME ON A DOCKABLE WINDOW
    frmTopDock.DockingPosition = DockingWindows.DockableWindow.DockingPositions.TopExterior;

    //TELL THE DOCKING WINDOW WHICH CONTROL TO DOCK TO
    frmTopDock.DockedControl = dataGridView1;

    //YOU MUST STILL SPECIFY THIS WHEN SHOWING DIALOG
    //IT TELLS THE DOCKABLE WINDOW WHICH WINDOW TO
    //GREY OUT
    frmTopDock.ShowDialog(this);
}

//Possible Docking Positions


    DockingWindows.DockableWindow.DockingPositions.BottomExterior;
    DockingWindows.DockableWindow.DockingPositions.BottomInterior;

    DockingWindows.DockableWindow.DockingPositions.LeftExterior;
    DockingWindows.DockableWindow.DockingPositions.LeftInterior;

    DockingWindows.DockableWindow.DockingPositions.RightExterior;
    DockingWindows.DockableWindow.DockingPositions.RightInterior;

    DockingWindows.DockableWindow.DockingPositions.TopExterior;
    DockingWindows.DockableWindow.DockingPositions.TopInterior;

Image Gallery


Docked Right Interior

Dock Right Internal

Docked Left Exterior

Dock Left

Docked Bottom Interior

Dock Bottom Internal

Docked Top Exterior With Modal

Dock Top with Modal

Leave a Reply

You must be logged in to post a comment.

  • RSS
  • Twitter
  • Facebook
  • LinkedIn
  • DeviantArt