DockWindows vs ToolWindows

Docking/MDI for WPF Forum

Posted 12 years ago by Eugene G
Version: 12.1.0560
Avatar

Hi guys, could anyone tell me of the advantages of using DockWindows vs ToolWindows? I am looking to use docking in the scanrio where all the content will be in form of user controls. ToolWindows support the functionality I need i.e. hiding tabs when only one is open, hiding titles, etc.

Is there a reason to not use just ToolWindows?

 

Thanks,

Eugene

Comments (1)

Answer - Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Eugene,

Document window are limited to being in the MDI area (within the workspace) and being rafted.  Tool windows can go anywhere, including the MDI area.  If you want your windows to be able to be in any location, then using tool windows is fine. 

If you use them for documents though, just be sure to call Destroy on them once the document is "closed" so that they don't stick around in memory.  By default, document windows auto-destroy themselves when closed.  This is described in the "Lifecycle and Docking Management" documentation topic.


Actipro Software Support

The latest build of this product (v24.1.3) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.