When I use the dockmanager with contentpanes, there are multiple layers of margins that I see, which i want to get rid of..
Any ways to get rid of those? Pls. see the attached screenshot..
Hello cinfra,
you could create style for ContentPane that will look like this:
<Style x:Key="CustomContentPane" TargetType="ig:ContentPane">
<Setter Property="Padding" Value="0"></Setter>
</Style>
You should apply that style to every ContentPane, which padding you would like to remove.
According to the border that you are seeing between different ContentPanes, do you really want to get rid of it, because it is made to show users, that they could resize different ContentPanes just by dragging it.
Thanks that got rid of the padding inside of the contentpanes...
I agree that the space outside of the contentpane is a visual cue to the user to indicate that he can resize.. but what about the spaces on the top and bottom... We would want to eliminate them as they are not resizable..
I just noticed that Visual Studio also has padding outside of the content panes..
If its not easy to get rid of them, is there a way to reduce the thickness?... We are looking at every possible way to maximize the screen space for content..
Thanks
Hello,
You can modify the style for the XamDockManager to change the Margin’s Padding for any of the items in the control’s template. You can find the default style in
C:\Program Files\Infragistics\NetAdvantage 2011.1\Silverlight\Default Styles\XamDockManager\generic.xaml
For example, you can change the Margin for the PanePanel to eliminate/minimize the spacing on the top and bottom of the control. For example:
<igPrim:PanePanel x:Name="Panel" Grid.Row="1" Grid.Column="1" Background="Transparent" Margin="1,0,1,0">
<ContentControl VerticalAlignment="Stretch" HorizontalAlignment="Stretch" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
</igPrim:PanePanel>
Valerie
Were you able to resolve your issue?
Yes. That worked. Thanks