PlotAreaBackground in WPF

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

Kcsorensen wrote at 2013-12-16 19:39:

Hi all

If I want to change the plot area color I use this code in c#

ex.
MyPlotModel.PlotAreaBackground = OxyColors.Gray;

But how would I do this direcly in WPF ?

This is no PlotAreaBackground in <oxy:Plot>. Background is for the whole graph.

Thanks in advance.
Kcsorensen

objo wrote at 2013-12-16 20:55:

I added the property

Kcsorensen wrote at 2013-12-16 22:01:

Thanks

I have updated the library so its 16. december through NuGet but I still dont see it?

Should I be able to write it like this ?

ex.
<oxy:Plot PlotAreaBackground="Gray">

Regards
Kcsorensen

objo wrote at 2013-12-16 22:11:

Yes, it should be included in version 2013.2.142.1

Kcsorensen wrote at 2013-12-16 22:21:

I only had 2013.2.141.1.

I can confirm it works with 2013.2.142.1. Thanks alot!
CodePlex