Docking Windows Dont Honor Margin

Docking/MDI for WPF Forum

Posted 15 years ago by Wayne Boyles
Version: 9.1.0507
Not sure if it is something I am doing wrong but here is the code I have (snipped):

          <docking:ToolWindowContainer Margin="3">
               <docking:ToolWindow Title="Client Explorer">
Now the problem is that when the application first loads the margin is applied to the windows correctly. If you unpin and hide the window and then re-pin it, the margin is ignored and it goes back to the default.

Something I am doing or a possible bug?

Comments (2)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Wayne,

Any sort of docking container (such as SplitContainer, ToolWindowContainer, etc.) is created and destroyed dynamically as needed to adjust layouts so you should never set any properties on container instances. You could make an implicit style for ToolWindowContainer in the DockSite.Resources but that is the only way to modify them.

Actipro Software Support

Posted 15 years ago by Wayne Boyles
Thank you, I knew it must have been something simple that I overlooked!
The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.