1

I want to make a charting control for an embedded device using Silverlight for Windows Embedded. Currently i am planning to use line shape for drawing the graph.

My question is if its a good approach(performance wise) or should i look for other options. Or if any controls are available for SWE.

Thanks

likeitlikeit
  • 5,563
  • 5
  • 42
  • 56
H3llrais3R
  • 174
  • 1
  • 2
  • 13

3 Answers3

1

Silverlight is not a proper answer to drawing charts on an Windows Embedded Compact device. You should go for using (or creating) a native GDI element. If performance is very important (e.g. for a fast-updating chart), you might also consider DirectDraw.

The best way in a commercial project would probably be to use a readymade component, such as this one.

You can find somebody else's experiences and advice here for pointers to what to look for when doing this yourself. If you expand your post with more details about what you are actually trying to achieve, I might give you a more detailed response.

likeitlikeit
  • 5,563
  • 5
  • 42
  • 56
  • 1
    I am trying to make charting control for a data logger used for observing real-time data, and yes performance is important.So if i host GDI control for plotting the waveforms in my silverlight(only for overlays) application will it be efficient?? – H3llrais3R Apr 06 '13 at 22:51
  • @H3llrais3R Much more so that if you use Silverlight. Also, SWE is a royal pain in the ... to deal with. Do you plan to do an oscilloscope-type thing? And what's your actual hardware platform? – likeitlikeit Apr 06 '13 at 22:56
  • ya its similar to oscilloscope, using an i.MX53 for hardware. – H3llrais3R Apr 06 '13 at 22:58
  • If you plan to have 'real-time' (like in 30fps) updates, I'd sure go for DirectDraw. You can fine-tune GDI code to squeeze more performance out of it as it is a relatively powerful processor in comparison to what I saw being developed for in Windows CE, but you'd still be having a hard time to make this work smoothly in GDI. DirectDraw is the most efficient graphics subsystem on Windows Embedded. – likeitlikeit Apr 06 '13 at 23:21
  • 1
    thanks for giving a direction. Will award the bounty tomorrow – H3llrais3R Apr 06 '13 at 23:31
0

The answer is stop using Silverlight, since Microsoft is abandoning the product. Do it in Flash—or better yet, use HTML5 and JavaScript.

Johnny
  • 1
0

In recent windows embedded applications that use windows universal apps I would highly recommend oxyplot.

http://oxyplot.org/

These plots are the best I've found on the internet so far and very easy to use. Best of all they are free. You can get these using a NuGet Package manager which makes getting updates fairly simple.

LochnessLAM
  • 121
  • 6