Binding WPF Controls to an Entity Data Model

Play Binding WPF Controls to an Entity Data Model

The Discussion

  • User profile image

    Seems too scripted and not natural. Video should have been just one person presenting.

  • User profile image

    Thanks for the feedback.  My questions were a bit scripted -- intended to help with the flow of the video; I'm really just there to video tape the presentation. Maybe in future videos, I'll just do the introductions and let the presenter go on with the presentation Smiley.

  • User profile image

    Great tutorial! Thank you


    I followed along till Creating Data-Bound Controls section, when I click on the Show Data Source, Data Source window is NOT showing up the AdventureWorksLTEntities item. What am I missing? Please help, I am new to Data Model



  • User profile image

    Hi, cadprogrammer,

    Which version of Visual Studio are you using? The Data Sources Window support for EDM is recently enabled in Visual Studio 2010 Beta1.



  • User profile image

    I missed that it was Studio 2010 too, I was getting excited by the possibility of putting it to use until then!


    Good walkthrough though, cheers.

  • User profile image

    This type of demo really doesn't help people understand the Model-View-ViewModel pattern which, from my understanding, is the future of WPF development.  This feels very much like a WinForms demo.



  • User profile image
    Gil aka GMF

    That's a good video but not so parctical to real world scenario.

    Since most of current development is tier based the last thing the programmer wants to see is how the DAL getting used directly from within the GUI. how do I get XAML to bind to my BL output objects in that same easy way is what I miss here.

  • User profile image

    Thanks for the video. I was wondering how to detect changes. Say you only want to enable the save-button when something has been changed. How would you do that?

  • User profile image

    This video was intended to demonstrate an introductory walkthrough for WPF drag-and-drop data binding.  You can find more information in the WPF MVVM Toolkit here:, or go directly to the download page:


    The toolkit (packaged as a ZIP file) contains:


    a)      A VS 2008 template for MVVM apps

    b)      A general intro to MVVM / MVC / etc. explaining why these are valuable

    c)       A walk-through, which uses the template to build a simple app

    d)      A complete WPF app (Messenger) demonstrating MVVM in the real world.


    I hope this helps!

  • User profile image



    When the EDM is generated and the table dragged onto the design surface, default code is generated in the Windows loaded event handler and one can display the data and move back and forward using the techniques shown. However, when one tries to edit and save the changes no database update is performed.


    I noted that the presenter and the MSDN documentation advises a replacement of the code but I don't understand why the default code does not permit database updates?


    Thanks in advance

  • User profile image

    Hi there,


    a quick note to say thanks, I found this presentation very helpful.


    I noticed a few other commenters didn't like the content or style. I actually found it very clear and succinct. I'd be very pleased to see more videos posted in this interview/demo style. Keep up the good work.


     - a.

  • User profile image

    I came to see in a hope that video would do it via MVVM but that's not the case. Any idea where could i find some thing like this. I want to use EF with MVVM.

Add Your 2 Cents