[Metro] Plot area background

Apr 10, 2013 at 2:44 PM
Hi,

Is there a way change the background of the plot area only ? (in Metro - The Background property isn't what I want because it changes the whole background of the control, not only the plot area background).

Thanks in advance,

Nicolas
Apr 10, 2013 at 3:32 PM
I think you can use a rectangle annotation on the entire chart (with no min/max x/y).
Apr 10, 2013 at 4:09 PM
Nice idea !

But with this code, the background don't change :
RectangleAnnotation plotBackground = new RectangleAnnotation();
plotBackground.Fill = OxyColors.Pink;
PlotModel.Annotations.Add(plotBackground); 
What am I doing wrong ?
Apr 11, 2013 at 2:20 PM
Try to update your plotModel and your graphic component...
Apr 11, 2013 at 2:27 PM
Already tried it, without better results :(