In my last WPF related post I spoke a bit about my WPF learning experience. I was fortunate enough to have an MSDN Universal subscription and any book I wanted via my employer as I went down the path. Unexpectedly, I recently received an email from a reader who wanted to learn WPF on a budget of $0.00. After thinking for a bit, I came to the conclusion that WPF can be learned without spending any money (assuming you have a computer that can run the tools). Below is a roadmap on how to do so.
Get the tools for free
Visual Studio Express, which is able to create WPF apps can be found here
If you need any other tools, such as SQL Server Express, you can most likely find them via the Web Platform Installer
Learn the Framework
Between MSDN and the community, there is more than enough well-written documentation out there to help one become an expert on the WPF framework itself. In his book, “Advanced MVVM”, WPF expert, Josh “The Maestro” Smith, recommends the following documents to come up to speed with the WPF framework:
- Introduction to WPF
- WPF Architecture
- A Guided Tour of WPF
- Customize Data Display with Data Binding and WPF
- ItemsControl: ‘I’ is for the Item Container
A lot of the information in the above links is difficult to absorb, but I think it is very worthwhile to go through the material, and work through the examples, at least once. If some of the documents are unclear, you can always go back to them as you learn more and need more clarification.
Many people blow off MVVM as “the latest popular design pattern”, but learning MVVM is essential to working with WPF. This is because MVVM is a natural pattern to use considering the way databinding works with WPF. Yes, you can write WPF apps using tried-and-true code-behind and click event handlers like people did with winforms, but you’ll be doing yourself a disservice.
When learning MVVM, the first place to look is this very simple video by the Jason “The Enigma” Dolinger, where he explains what MVVM is, and what the pattern’s strengths are.
The next place I would look is the MVVM In the box training by Karl “The Educator” Schifflett.
As a lesson summary, an in-depth overview of MVVM written by Josh Smith can be found here.
Apply what you’ve learned
While there is no WPF “best practices” sample that I am aware of, I think the following can get one to see how WPF fits into an application architecture.
- Building a Desktop TO-DO application with NHibernate.
- Understanding the MVVM Pattern
- Build Your Own MVVM Framework
Not strictly MVVM, but worth looking at as application and framework samples:
Read Blogs! Search out WPF related blogs. There are enough out there to fill your news reader every day. Pete “6510” Brown puts out a Windows Client roundup frequently which is a good starting point.
Read and participate in the knowledge dump at StackOverflow. At first you may find that some of the questions are the same things you are wondering about. After awhile, you will find that you can answer some of the questions. As you answer questions, you’ll reinforce what you’ve learned.
Share Software development is still largely a folklore based discipline. It is your duty to share what you have learned in the best way you know how.