• Products
  • Download
  • Purchase
  • Support
  • Company
Actipro Software company logo
Twitter Follow Actipro RSS Subscribe (RSS Feed)

The Actipro Blog

Tag Cloud

  • blog
  • docking
  • editors
  • intelliprompt
  • micro charts
  • navigation
  • propertygrid
  • ribbon
  • shared library
  • silverlight
  • syntaxeditor
  • themes
  • views
  • web site
  • winforms
  • winrt
  • wpf

Latest Twitter News

May 14, 2012 at 2:50 PM
IntelliPrompt code snippet features have been added to our VS-like code editor control for #WPF and #Silverlight. http://t.co/1IchOJrr

May 10, 2012 at 9:40 PM
Our new Micro Charts control products for #WPF and #Silverlight are out now. Come build some dashboards with them! http://t.co/EEERvff0

May 7, 2012 at 6:47 AM
Today we look at bar charts, for our upcoming #WPF, #Silverlight, and #WinRT Micro Charts product. http://t.co/gxHuPS6B

May 4, 2012 at 6:25 AM
See a gallery of micro area charts in our upcoming release for #WPF, #Silverlight, and #WinRT. http://t.co/qDXGwW8B

May 3, 2012 at 6:32 AM
See a variety of line charts that are easy to make with our upcoming #WPF, #Silverlight, #WinRT Micro Charts product. http://t.co/mbkX6tJd

Twitter Follow us on Twitter

Month List

  • 2012
    • May (9)
    • April (6)
    • March (11)
    • February (11)
    • January (2)
  • 2011
    • December (2)
    • November (7)
    • October (2)
    • September (1)
    • August (5)
    • July (3)
    • June (6)
    • May (5)
    • April (8)
    • March (4)
    • February (5)
    • January (9)
  • 2010
    • December (9)
    • November (10)
    • October (4)
    • September (8)
    • August (12)
    • July (9)
    • June (7)
    • May (6)
    • April (7)
    • March (6)
    • February (6)
    • January (4)
  • 2009
    • December (2)
    • November (2)
    • October (12)
    • September (3)
    • August (11)
    • July (10)
    • June (6)
    • May (3)
    • April (7)
    • March (6)
    • February (8)
    • January (10)
  • 2008
    • December (10)
    • November (2)
    • October (3)
    • September (5)
    • August (5)
    • July (8)
    • June (4)
    • May (4)
    • April (10)
    • March (8)
    • February (1)
    • January (2)

Category List

  • RSS feed for ActiproActipro (321)
  • RSS feed for Blog SummaryBlog Summary (15)
  • RSS feed for GeneralGeneral (43)
  • RSS feed for In developmentIn development (164)
  • RSS feed for New featuresNew features (155)
  • RSS feed for New productNew product (38)
  • RSS feed for PromotionPromotion (2)
  • RSS feed for SilverlightSilverlight (90)
  • RSS feed for Tips and tricksTips and tricks (4)
  • RSS feed for Visual Studio 2008Visual Studio 2008 (2)
  • RSS feed for Windows FormsWindows Forms (22)
  • RSS feed for Windows VistaWindows Vista (10)
  • RSS feed for WinRTWinRT (9)
  • RSS feed for WPFWPF (257)
  • RSS feed for XAMLXAML (23)

About Us

Actipro Software is a leading provider of .NET user interface controls for the WPF, Silverlight, and WinForms frameworks, and is most well-known for their SyntaxEditor syntax-highlighting code editor control.

Please take some time to learn more about us and our product offerings.

Docking/MDI for WPF to Get Linked DockSite Features

April 8, 2011 at 5:05 AM
by Bill Henning (Actipro)

PostBannerWPFStudioDevNotes

In addition to better Interop support we previous described, we've added the ability to link DockSites in our Docking & MDI for WPF product.

Background

A DockSite is the main entity or object when working with our Docking & MDI for WPF product. It manages all the defined document and tool windows, and all the possible containers. This includes the Workspace and associated MDI host, if any.

In previous builds, a document/tool window being dragged with the mouse could only be docked inside it's own DockSite (or floated). If multiple DockSites were used in an application, each was it's own little island. Document/Tool windows could be moved between DockSites programmatically by unregistering it from the current DockSite, then registering it and opening it in the new DockSite. But this approach wasn't as intuitive as dragging and dropping it to the new DockSite.

Linking DockSites

One or more DockSites can now be linked together, which allows their document/tool windows to be dragged and dropped between them.   To link two DockSites, you must call the new DockSite.LinkDockSite method, passing the DockSite that should be linked:

   1: this.dockSite1.LinkDockSite(this.dockSite2);

This establishes a link from dockSite1 to dockSite2, and from dockSite2 to dockSite 1. To break a link, you can call the new DockSite.UnlinkDockSite method, again passing the associated DockSite:

   1: this.dockSite1.UnlinkDockSite(this.dockSite2);

Just like with LinkDockSite, the link from dockSite1 to dockSite2 is removed, and vice versa.

NOTE: The links are established using weak references to ensure that it does not retain any DockSites that may have fallen out of scope, but it is good practice to unlink DockSites explicitly.

Once a link is established, you can freely move document and tool windows between the linked DockSites.

Configuration Options

We've added new configuration options to control exactly which document and/or tool windows are allowed to be dragged between linked DockSites. The DockSite.CanDocumentWindowsDragToLinkedDockSites and DockSite.CanToolWindowsDragToLinkedDockSites properties can be used to prevent all document and tool windows, respectively, from being moved. The DocumentWindow.CanDragToLinkedDockSites and ToolWindow.CanDragToLinkedDockSites properties give you finer control and allow you to override the global settings on the DockSite.

This allows you to say that only document windows should be allowed to be dragged to a linked DockSite, or maybe only a select few tool windows.

Example

In these series of screen shots, you can see that we drag a document window from the DockSite in the main window to a linked DockSite in the child window. We get all the fancy dock guides and previews that you'd expect.

Linked1

Linked2

Linked3

Summary

This is a great new feature with lots of potential applications, especially in multi-monitor setups. Look for this and other great features in our next maintenance release.

Tags: wpf, docking
Filed under: Actipro, In development, New features, WPF
Submit to DotNetKicks...
Permalink | Comments (2)

Related posts

Docking/MDI for WPF to get new magnetism featuresAnother new feature that we have added to our Docking & MDI for WPF product, is magnetism. This ...WPF Studio integrates with and adds features to the official Microsoft WPF DataGridIn the most recent WPF Studio 2009.1 builds, we've integrated with and enhanced Microsoft's open sou...The future of WPF, Silverlight, and HTML5 - Are they dead?As I’m sure you are all aware, last week’s PDC 2010 conference set off a firestorm of tweets and new...

Comments

April 11, 2011 at 02:58  

Mike Strobel

This is great!  I was recently lamenting the lack of support for linked dock sites in various WPF docking packages.  I had wanted to create a multi-monitor environment with a single DockSite per monitor.  I'll have to revisit the idea when you guys release your next update Smile.

Mike Strobel United Kingdom

July 1, 2011 at 00:22  

trackback

Actipro Blog 2011 Q2 Posting Summary

Actipro Blog 2011 Q2 Posting Summary

The Actipro Blog - WPF, Silverlight, and WinForms Development

Comments are closed
Copyright © 1999-2012 Actipro Software LLC. All rights reserved.
Home Actipro Software | Products | Download | Contact Us