Welcome to Windows Presentation Foundation (WPF)
Top Tasks :

WPF Team Bloggers

Browse by Tags

All Tags » WPF » WCF   (RSS)

  • Using WCF In An XBAP

    Steve Maine confirmed to Rob and me that Windows Communication Foundation (WCF, codename "Indigo") will work in partial trust in upcoming .NET Framework v3.5. This means you can now use HTTP binding in WCF from within a XAML Browser Application (XBAP). What does this mean? Well, using WCF you will now get parity for things for which you have been using ASMX within your XBAP. Secure communication is possible via transport layer security only. Not all WCF features are available from within an XBAP though. This means you cannot currently host services, have duplex communications, use non-HTTP transports, or use WS-* protocols. Please use the WCF Forum or the WPF Forum to tells us what you think. We'd love to hear your feedback on this feature. For the differences between ASMX 2.0 and WCF, see this article . If you already have ASMX services for which you were using an ASMX client, here's how to migrate ASMX to WCF . I should add, you are already able to access a WCF service using an ASMX client Read More...
  • Inter Process Communication Between Applications and Vista Gadgets Using WCF (Part 2)

    Once I got WCF working in a gadget, another scenario came up: wouldn't it be nice if the gadget and the application shared a data model? The gadget could remotely databind to the same data that the application was databound to. As such, there would be one data source, owned by the application, that the gadget could both manipulate as well as receive updates when things changed. To be clear, there are not two data sources that I am trying to keep in sync, but rather one data source owned by the application which the gadget reads and writes to. (It does have a "local copy" but from the code never touches the "local copy" and only manipulates the data source through its proxy class to the master copy.) I wanted to use as much of the WPF databinding as I could to try and get some of the databinding goodness for free. I based the code on a sample in the SDK under the WCF samples called Data Binding in a Windows Presentation Client. Also, I found this blog post helpful. Download the code and Read More...
  • Inter Process Communication Between Applications and Vista Gadgets Using WCF (Part 1)

    I recently faced the design challenge of getting an application and gadget to communicate. How to solve the problem? Well, what better way to talk between applications than Windows Communication Foundation (WCF). After all, it is the inheritor of the .NET Remoting legacy, which is what would be used in the past. It was quite enjoyable to return to writing WCF code, which I hadn't done for awhile. It really is the analog to WPF in terms of beautifully factored code architecture. In part 1, I'll show my first prototype, which used an XBAP gadget acting as both a server and a client that sends mouse movements over WCF to trackball either the application or the gadget. In part 2, I'll show my second prototype, which shows an ActiveX-based gadget acting as a client to the application and databinding to the application's data model. I subclass ObservableCollection and show the beginnings of what I dubbed SerializedObservableCollection . Download the code and gadgets. Before explaining how I went Read More...

Copyright © 2006 Microsoft Corporation. All Rights Reserved. | Terms of Use | Privacy Statement | Contact Us