Hi, I need a very weird thing I admit. I hope you'll be able to help me.
My current situation (all in one solution VS2010):
- I have the Silverlight assembly with user-control (basically a drawing of kind)
- I have a WCF service to provide the images (hosted in the website project)
I somehow need to:
- when someone requests the RESTful service (above) for the image of a certain size
- create, set-up and render that control to an image (I did it using the WriteableBitmap)
- return the image to the service somehow <-- THIS IS MY PROBLEM
- provide that image as a response (I know how to do that)
I've tried to reference the Silverlight assembly (from non-Silverlight assembly) with helper class returning the image. But that's just ugly.
- Is there a way to host the WCF service that is inside Silverlight ?
- If no, is there any other way to get the image from the Silverlight -> non-Silverlight service class
Thanks, Kate
Note: The Silverlight control is a massive one, and used in three other projects (editor, viewer, windows phone 7 application) so I can't really move it. Also Silverlight's WPF-like drawing is far superior to non-Silverlight.