The Situation:
I have a software project written in .NET 4.0 with a WinForms UI. I would like to replace the UI with a Silverlight UI.
The application should work across the web. The reason for using Silverlight and not WPF is platform independence, so the UI might be running on a different OS eventually.
Example: the .NET program produces some data, I would like to plot the data in a Silverlight control.
The Problem:
My .NET project uses libraries that are incompatible with Silverlight. Rewriting the entire .NET code in Silverlight would take a very long time.
The Question:
What would be a good way to combine the .NET part with the Silverlight part?
Should I add some middle layer to have the two programs communicate with each other, and if yes, what should I use? (I have never done this kind of thing before)
Is there a way to directly call a Silverlight function from a .NET class, e.g. SLGUI.display_data(dotNET_data)
, or the other way round?