Building OxyPlot for WP8

Apr 8, 2013 at 1:41 PM
Edited Apr 8, 2013 at 1:45 PM
Hello everyone,

I have managed to get OxyPlot working on WP8, but there's a strange issue I'm experiencing when trying to set up a project to build one DLL.

If I include the OxyPlot (core) and OxyPlot.Silverlight_SL4 projects, then reference them both from WP8 project, I get fully working plots out of the box, even though Visual Studio complains that I'm referencing a Silverlight project which might not work properly . You can't include SL5 version - "The reference must be a Windows Phone project that targets the current or earlier version of the Windows Phone OS".

Now I can move the sources to WP8 project and build it - everything goes smoothly, it just works on the build stage. But then when I try to use this particular project in a WP8 app, I get blank screens - plots don't get rendered at all, I tried fiddling with various options to no avail.

Now, I have no idea why the exact same code works when it's in a SL4 project, but doesn't when in WP8 project, so I'd appreciate any thoughts.

If it's (relatively) easy to fix, I could just create a fork with the WP8 project and submit a pull request later on...