Docksite and outside default padding value

Docking/MDI for WPF Forum

Posted 12 years ago by Arthur Damen
Version: 11.2.0553
Platform: .NET 4.0
Environment: Windows 7 (64-bit)
Avatar

Hi,

i am using a docksite which is located inside a grid.
The docksite itself is not positioned directly to the border but has a margin (padding of some pixels) related to the grid.
How can i remove this margin when i want the docksite to be stretched to the size of the grid???

<Grid>

<docking:DockSite Background="Red"> </docking:DockSite>

</Grid>

Comments (4)

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

Hi Arthur,

I tried your sample code, but didn't see any margin. Can you please elaborate?


Actipro Software Support

Posted 12 years ago by Arthur Damen
Avatar

Try this:
I want to get rid of the red part....

 

<rib:RibbonWindow x:Class="MainWindow"

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

xmlns:doc="http://schemas.actiprosoftware.com/winfx/xaml/docking"

xmlns:rib="http://schemas.actiprosoftware.com/winfx/xaml/ribbon"

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

Title="MainWindow" Height="350" Width="525">

<DockPanel >

<rib:Ribbon DockPanel.Dock="Top"></rib:Ribbon>

<doc:DockSite Background="Red" >

<doc:Workspace Background="Green" >

</doc:Workspace>

</doc:DockSite>

</DockPanel>

</rib:RibbonWindow>

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

Hi Arthur,

We already answered this question in your other forum post. You would need to add the specified Style:

<rib:RibbonWindow.Resources>
	<Style TargetType="{x:Type doc:AutoHideHost}">
		<Setter Property="Padding" Value="0" />
	</Style>
</rib:RibbonWindow.Resources>

[Modified 12 years ago]


Actipro Software Support

Posted 12 years ago by Arthur Damen
Avatar

oops, sorry.

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

Add Comment

Please log in to a validated account to post comments.