Click to See Complete Forum and Search --> : Using a WCF Control


Bill Crawley
September 8th, 2008, 04:28 AM
Hi All,

I have used Expression Blend 2 to create a WCF Control. (it's overkill but I'm just trying to get to grips with it). I've simply created a banner and have compiled the control and it's generated a dll.

Back in my main C# VS2008 ASP Project I now want to use this control. This is where my problem is. I Placed a new toolbox group in my tools and then browsed to the Dll to add it to my toolbox. Though it doesn't complain, after I've ticked the dll and then pressed save, it doesn't get added to my toolbox.

Can anyone shed some light on how I reference the control so that I can use it in my app.

Arjay
September 8th, 2008, 10:10 AM
I believe you mean WPF control (Windows Presentation Foundation) instead of WCF (Windows Communication Foundation).

I don't know if this is possible as a WPF control is a client control.

To be sure try searching google for "ASP using WPF control".

Bill Crawley
September 8th, 2008, 10:25 AM
Yes, you are correct WPF...Sorry for my slip. I would expect to be able to use it as any other control, as mentioned, that's my prob. I've done some searching on Google, but to No avail. I would expect to be able to use it on the basis that is is 'WPF' and so should work with all the new Foundations if plugged together correctly.

Arjay
September 8th, 2008, 11:26 AM
Keep in mind that ASP server controls work a bit differently than a client side control. In a general sense, ASP server controls emit html that gets displayed in the client browser which is quite different to how a WPF control works.

I suggest looking into Silverlight 2.0 (http://silverlight.net/) for WPF-like functionality (SL is a subset of WPF) that works in a browser.