Dragging Pages

The KryptonWorkspace has been conceived to provide two major features that make it stand out from any other control available. First up is the ability to layout the child Navigator instances in a hierarchical manner with accurate control sizing. A previous post about star sizing has already described this ability in some detail. Second is the capacity to drag and drop the pages within the workspace to change the organization.

Drag to Control Edges

When you drag a page you have several options about where to drop the page. Your first choice is to drop at one of the four edges of the workspace in order to create a new cell. Here we have a series of three images showing this happening…



The second image showed the light blue overlay that indicates the mouse is over an area that is valid as a drop target. Each of the four control edges has such a hot zone allowing you to drop and create a new cell at that particular edge.

Drag to Cell Edges

Each cell also exposes hot spots on the four inner edges of itself. This will then create a new cell at the position indicated by the light blue indicator overlay. These pictures show a page being dragging to the bottom edge of an existing cell…



Drag to Transfer

Finally you have the option of moving a page from one cell to another without creating a new cell at all. This simple transfer operation can be seen below…



7 Responses to “Dragging Pages”

  1. Waescher Says:

    This is great! Just like the intuitive docking-behaviour of VS200x!

    Perhaps a litte untimely, but do you think of adding a docking-indicator control like shown in this gif:
    http://www.codejock.com/public/assets/img/products/dockingpane/tour_3.gif

  2. Phil Wright Says:

    The workspace will be reused as the content of the floating and docked edge areas and so needs the redocking ability.

  3. Waescher Says:

    I rather thought of the indicator “buttons” showing the possible docking-options.
    http://img380.imageshack.us/img380/3923/dockingindicatortr7.png

    Never mind …

  4. Phil Wright Says:

    That will indeed be added as another option that the user can choose from and the default for docking.

  5. Paul Says:

    This looks great. Will it be released as part of Krypton Navigator or will we have to buy it separately?

  6. Matt Says:

    When a tab is dragged from a cell leaving the cell empty, is there going to be an option to automatically kill the cell? Otherwise the user could create all kinds of cells with nothing in them…

  7. Phil Wright Says:

    The Workspace component will be separate to the navigator but built on top of it. So if you buy the Workspace you also get the Navigator. But you can still choose to buy the Navigator on its own.

    The issue of empty cells is a good one and I have come up with a solution that I will blog about in a couple of days once I have finished it up.

Leave a Reply