Remove Plot Paddings

Oystein Bjorke 10 years ago 0
This discussion was imported from CodePlex

hamzad_cne wrote at 2014-01-08 10:29:

Hello,

I'm trying to include the Oxyplot Heatmap series as a layer on a map using Silverlight Bing Maps.
I always have a small shift in both directions for added coordinates, and I think it is because of the padding added to the external border of the plot. Is there a way how to remove this padding so the plot area fills all the space ?

Thank you.

objo wrote at 2014-01-08 10:57:

The control template of the Plot control contains a Border:
        <ControlTemplate TargetType="{x:Type local:Plot}">
          <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}"
                  BorderThickness="{TemplateBinding BorderThickness}">
            <Grid x:Name="PART_Grid" />
          </Border>
        </ControlTemplate>
Have you tried setting the BorderThickness property to 0?

hamzad_cne wrote at 2014-01-08 12:57:

Thanks for your reply.

I set 'BorderThickness' to 0 but I had the same render.

objo wrote at 2014-01-10 09:10:

How large is the shift? Can it be a layout rounding problem?