Binding WPF Controls to an Entity Data Model

Download this episode

Download Video

Description

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
http://blogs.msdn.com/kathleen

Embed

Format

Available formats for this video:

Actual format may change based on video formats available and browser capability.

    The Discussion

    • User profile image
      Toepher

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

    • User profile image
      kmcgrath

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

      -SB

       

    • User profile image
      AKEM

      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.

       

      -Yang

    • User profile image
      Corker

      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
      bbehm

      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.

       

      Brian

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

      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
      kmcgrath

      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!

    • User profile image
      JimCraigton

      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

    • User profile image
      acooper

      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
      Adil

      Hi
      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.
       
      Thanks
       
      Adil.

    Comments closed

    Comments have been closed since this content was published more than 30 days ago, but if you'd like to send us feedback you can Contact Us.