Loading user information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading user information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Binding WPF Controls to an Entity Data Model

9 minutes, 50 seconds


Right click “Save as…”

In this interview, programming writer, McLean Schofield, demonstrates how to bind WPF controls to an entity data model, using Visual Studio 2010 Beta 1. You can also learn more in the topic: Walkthrough: Binding WPF Controls to an Entity Data Model.

Kathleen McGrath
Visual Studio User Education


Follow the discussion

  • Oops, something didn't work.

    Getting subscription
    Subscribe to this conversation
  • Seems too scripted and not natural. Video should have been just one person presenting.

  • 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.

  • SBcadprogramm​er cadprogramm​er

    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



  • 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.



  • 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.

  • 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.



  • 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.

  • 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?

  • 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:  http://wpf.codeplex.com/Wiki/View.aspx?title=WPF%20Model-View-ViewModel%20Toolkit, or go directly to the download page: http://www.codeplex.com/wpf/Release/ProjectReleases.aspx?ReleaseId=14962


    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!

  • Hi,


    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

  • 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.

  • AdilAdil

    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.

Remove this comment

Remove this thread


Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.