How to Remove Padding for the InnerToolWindows.

Docking/MDI for WPF Forum

Posted 10 years ago by keshav bansal
Version: 12.2.0573


How to Remove Padding for the Nested Toolwindows in floated state ?

Suppose i am having the Docksites inside the Toolwindow and these docksites are also having the toolwindow respectively.

I apply the ppadding to 0 in the window resources so when i run the application its applied and marging b/w the toolwindows will not displayed.

But when i Float the MainToolwindow,Its again displaying the Margin(Padding).

So how can i remove the Padding b/w inner toolwindows for the Floated toolwindow which also have the Inner toolwindows.


<Style TargetType="{x:Type docking:AutoHideHost}">

<Setter Property="Padding"Value="0" /></Style>




<docking:ToolWindow X:Name="MainToolWindow">

<docking:DockSite x:Name="BaseDocksite">




<ColumnDefinition Width="Auto"></ColumnDefinition>

<ColumnDefinition Width="*"></ColumnDefinition>


<docking:DockSite Grid.Column="0" x:Name="Docksite1"><docking:ToolWindowContainer>


<Grid><Button Content="Floats the Window1"></Button></Grid></docking:ToolWindow></docking:ToolWindowContainer></docking:DockSite>

<ContentControl Grid.Column="2"><Grid><Button Content="ContentControl"></Button></Grid></ContentControl></Grid></docking:Workspace></docking:DockSite>




[Modified 10 years ago]

Comments (1)

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

Hi Keshav,

Your Style is only in the Window.Resources, which won't carry over to the rafting window container since that is a separate Window instance.  You should put your Style in the Application.Resources instead and that will probably resolve this.

Actipro Software Support

The latest build of this product (v22.1.3) was released 25 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.