The Dynamics Duo talk about CRM and WPF

Play The Dynamics Duo talk about CRM and WPF
Sign in to queue


In this episode The Dynamics Duo dive into the deep rich coolness that is WPF.  We also spend some time talking about the offline data framework that Dynamics CRM provides developers. 

In past sessions we built solutions on SharePoint and Office and those are great for the specific scenarios they were intended for.  Windows Presentation Foundation (WPF) gives developers the ability to build rich interactive smart clients.  You’ll have to admit that nothing beats the inherent coolness of a well written WPF app.  I’ve worked on a few WPF projects (here and here) and it never ceases to amaze me the way you can reduce complexity and immerse users in the experience.

If your solution requires a desktop apps then WPF is absolutely the way to go.  If you’re building web apps then Silverlight is the right way to go.  When you’re not sure then you should think a little harder about your requirements.  Things like access to local PC resources require WPF.  Also if you’re doing heavy graphics that would require graphics acceleration then WPF is the right choice.  Finally if your app needs to be both online and offline then WPF also would be a good choice.

In keeping with the series of demos for a professional services organization, Girish shows off an eye-popping jaw-dropping WPF app that radically improves the time sheet entry process.  The scenario is an offline one.  Dynamics CRM provides a great offline framework as part of both the end-user experience and the developer toolkit.  By designating an entity in the system as available offline, the framework will automatically pull data from the CRM server and store it locally.  In order to make the experience a natural one a local web server (Cassini) and database server (SQL Server Express) are used.  In this demo we used the Microsoft Office Outlook client to take CRM offline.  I even surprised Girish by yanking out the network cable.   Smiley



Right click to download this episode

The Discussion

  • User profile image
    A good insight guys..thanks!
    BTW, isn't WPF Windows Presentation Foundation (& not Framework)? Wink
  • User profile image

    yup, its foundation Wink

  • User profile image
    hi, is there any chance to get the source code or any design diagram ?

  • User profile image

      Girish is posting various bits of code etc on his blog here:


  • User profile image

    As with any framework that makes the difficult look simple there are a few standard "gotchas" I was hoping you could explain my question below, maybe in another post.


    Q: How does CRM handle failures on the live updates. If a user updates in online mode I assume it updates the local SQLEXPRESS cache before updating the remote data source. If the remote call to persist the data fails does CRM tidy up properly and do the necessary rollbacks to a consistent state?

    If so, can you explain how it does this in a high volume, multi user environment with people working on and off-line at different stages in the application lifecycle?

Add Your 2 Cents