PDA

View Full Version : Can RS work with WPF?



allenshen
September 21st, 2010, 04:30
Hi,I'm new to RS and I want to create a WPF application using the render image like the silverlight demo ws_sl_demo.

when I add the code :this.mView = this.mRsApp.create_view(RenderContainer);
The WPF control "RenderContainer" is a canvas. but Visual studio prompt it's not the corrent type.But in the silverlight demo it's OK.then I find the method mRsApp.create_View(Panel target) the WebServicesClientLib provide need a parameter in Panel type.

But in WPF I Can't find this type control so I want to Modify all the Panel type to Canvas in WebServicesClientLib and rebuild it.

this time I failed too~~~:(.

VS prompt "system can not find the type or namespace "Rs_site_services"
what should I do?

ak
September 21st, 2010, 15:49
Hi allenshen,



The WPF control "RenderContainer" is a canvas. but Visual studio prompt it's not the corrent type.But in the silverlight demo it's OK.then I find the method mRsApp.create_View(Panel target) the WebServicesClientLib provide need a parameter in Panel type.


The specific "Panel" reference is strictly to a silverlight control. The shipped WS client library does not support WPF controls to embed a view object.
There is a possibility of course to extend the shipped silverlight client library for your needs, but this would request unsupported modifications from your side.

In addition to this you are hopefully aware that the silverlight client library is recommended only as a reference as all the communication is asynchronous. Since WPF is a thick client it would be necessary to examine some optimized combination of synchronous and asynchronous command structure.

Best regards.