Customize the borders of PlotView: PlotAreaBorderThickness is not a Thickness, but a double

May 24, 2014 at 12:55 PM
Hi all, I would not have a border at the top and right side of my graphics.

But it seems that this is not possible because the PlotAreaBorderThickness PlotView property is a double, not a Thickness. (currently PlotAreaBorderThickness = "1")

Should be able to write
PlotAreaBorderThickness = "1,0,0,1" like BorderThickness = "1,0,0,1"

May 24, 2014 at 4:35 PM
Edited May 24, 2014 at 8:40 PM
I found the solution:

var model = new PlotModel()
    PlotAreaBorderThickness = 0, 

var lineAxis = new LinearAxis()
      AxislineStyle = LineStyle.Solid

....Other axes with AxislineStyle = LineStyle.Solid

May 25, 2014 at 11:51 AM
This should be covered by
I agree it is a good idea! But I am not sure who should have the responsibility of drawing those lines - the axes or the plot...
May 25, 2014 at 1:47 PM
This should be fixed now.
I am sorry about breaking the build for those who have used PlotAreaBorderThickness, but it should be very easy to correct. Simply replace the double value by new OxyThickness(x).
Marked as answer by Auriou on 5/30/2014 at 1:21 PM
May 26, 2014 at 7:09 AM
Edited May 26, 2014 at 7:09 AM
Great, thank you! it's true that it's normal that the PlotAreaBorderThickness property that must manage the plot borders and not axes responsibility.

  PlotAreaBorderThickness = new OxyThickness() { Bottom = 1, Left = 1, Right = 0, Top = 0}
now it works, thank you again.
Marked as answer by Auriou on 5/30/2014 at 1:21 PM