Docking Windows Dont Honor Margin

Docking/MDI for WPF Forum

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

<docking:DockSite>
     <docking:SplitContainer>
          <docking:ToolWindowContainer Margin="3">
               <docking:ToolWindow Title="Client Explorer">
                        
               </docking:ToolWindow>
          </docking:ToolWindowContainer>
     </docking:SplitContainer>
</docking:DockSite>
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 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
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 14 years ago by Wayne Boyles
Avatar
Thank you, I knew it must have been something simple that I overlooked!
The latest build of this product (v24.1.1) 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.