How to Remove Padding for the InnerToolWindows.

Docking/MDI for WPF Forum

Posted 11 years ago by keshav bansal
Version: 12.2.0573
Avatar

Hi,

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.

<Window.Resources>

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

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

</Window.Resources><Grid>

<docking:DockSite>

<docking:ToolWindowContainer>

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

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

<docking:Workspace>

<Grid>

<Grid.ColumnDefinitions>

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

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

</Grid.ColumnDefinitions>

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

<docking:ToolWindow>

<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>

</docking:ToolWindow>

</docking:ToolWindowContainer>

</docking:DockSite></Grid>

[Modified 11 years ago]

Comments (1)

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

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 (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.