3VSoft, DockingWindows, Docking Windows, Dock, Dockable, Visual Studio, VS2005, .NET, DockPanel, User Interface, Components, Controls Skip Navigation Links
Main
Download
DockingWindows
Other Programs
Project
      
Offers, remarks, wishes are accepted.
Your Contacts

Message



 

System requirements: Microsoft .NET Framework 2.0 and the development environment Microsoft Visual Studio 2005.

For correct use of library adhere to the following plan of action.

1) Add the reference from the project on library DockingWindows (file 3VSoft.DockingWindows.dll).

2) Add component DockPanel in an control in which you want it to use or create a inherited from DockPanel a component and add it (this case will be stipulated below).

3) Open the property window of DockPanel, choose property Items and open the collection editor.

4) Add the necessary container, having chosen it from offered. Adjust properties of the container:

  • a) PrevContainer - the container to which edge will be dock current. If null, the container will be fixed to edge of DockPanel.
  • b) DockToPrev - a kind of docking to edge of PrevContainer or (if PrevContainer it is equal null) to edge of DockPanel.
  • c) Panel1Part - a share of the area of the current container from the sum of the areas current and PrevContainer.

5) Add components DockingWindow in a window collection of current container Items and adjust each window. The major properties of component DockingWindow:

  • a) Text - a string which will be displayed in heading of a window.
  • b) Icon - a icon which will be displayed on a bookmark of a window and in heading.
  • c) IsIconDrawInCaption - returns, whether Icon will be displayed in heading of a window.

6) Add controls in windows DockingWindow with the help of the designer. If the window is in container AutoHideContainer, will fail to add controls with the help of the designer. In this case it is necessary to use property Controls of a window. That the controls necessary to you were accessible in the collection editor of Controls, it is necessary to use at the first stage inheritor of DockPanel similar to the following:

using System.ComponentModel;
using DockingWindows;

class TestDockPanel : DockPanel, ISupportInitialize
{
public TestDockPanel()
{
Settings.InterfaceLanguage = Language.Russian;
}

public void BeginInit()
{
}

public void EndInit()
{
Settings.DockingWindowControlTypes = new Type[] { typeof(Panel) };
}

In method EndInit there is an adjustment as a result of which the collection editor of Controls will suggest to add controls of the necessary types. In an example the control Panel is used only. Also it is possible to make other adjustments of library DockingWindows. For example to use Russian in names of items of context menus (Settings.InterfaceLanguage = Language.Russian).

7) Repeat actions, since 4-th on addition and adjustment of other containers.

To section DockingWindows

 
3VSoft, DockingWindows, Docking Windows, Dock, Dockable, Visual Studio, VS2005, .NET, DockPanel, User Interface, Components, Controls
     Copyright © 3VSoft 2005. All rights reserved. Rambler's Top100 Âåñü èíòåðíåò-Êóðñê