Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# SQL-Server WPF MVVM NoEffort , +
Hi,
 
I am totally a beginner in WPF and MVVM. Can you please give me a small and simple example on WPF MVVM.
 
I Google -ed and found so many articles which I could not get in to my head thoroughly.
 
I noticed the concept of MVVM while reading some article about WPF Data Binding and I got interested.
 
Since I am a beginner, I thought I would start it with MVVM and I was not lucky enough to get hold of some simple examples.
 
BTW, my database is in SQL. I am looking for a WPF MVVM pattern example which gets and sets data with SQL Server.
 
Please provide a simple database access example.
 

Thanks in advance
Posted 20-Feb-13 1:03am
Edited 20-Feb-13 9:00am
v2
Comments
Member 11268178 at 27-Nov-14 4:45am
   
thanks!
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Here is a good article with sample code on WPF and MVVW WPF/MVVM Quick Start Tutorial[^]
Then follow that up with using it for database access Using WPF MVVM for Database Access[^]
Both articles provide sample code for you to examine
  Permalink  
Comments
Marcus Kramer at 20-Feb-13 14:00pm
   
+5. Excellent links.
ramesh.mandapelly at 9-Sep-13 14:02pm
   
they are really a good links but not in MVVM patern so ultimately those links are use less for beginners
CHill60 at 20-Feb-13 17:52pm
   
Of course they're good links ... they're both in CodeProject!! Thank you :-)
CHill60 at 10-Sep-13 10:11am
   
Interesting comment - could you elaborate on how the articles don't fit the MVVM pattern for the benefit of any beginners that might pick up this link via google
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

I would recommend Building Enterprise Applications with Windows Presentation Foundation and the Model View ViewModel Pattern publish by Microsoft.
 
http://shop.oreilly.com/product/0790145309686.do#tab_04_0

you can find the source code here
 
http://examples.oreilly.com/9780735650923-files/
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 DamithSL 320
1 Sergey Alexandrovich Kryukov 222
2 OriginalGriff 155
3 Peter Leow 115
4 Afzaal Ahmad Zeeshan 114
0 OriginalGriff 7,510
1 DamithSL 5,519
2 Sergey Alexandrovich Kryukov 5,044
3 Maciej Los 4,961
4 Kornfeld Eliyahu Peter 4,514


Advertise | Privacy | Mobile
Web03 | 2.8.141223.1 | Last Updated 10 Oct 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100