How Can I become a better WPF developer? [closed]
开发者_StackOverflow
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this questionFor Quick learning WPF,I am following few books of WPF.But I don't know how to start it and which steps I have to follow to get Quick knowledge on WPF Programming with C#
Try to think of interesting and useful projects. I suggest a charting library with data-binding support. You will learn many important notions like:
- Composing elements in a container
- Creating custom dependency properties
- Providing data-binding support for the list of points to draw (for example), using INotifyCollectionChanged interface
- Using fast rendering techniques to plot thousands of points (look for DrawingVisual class)
And most importantly: you will learn to create your own components that suit your own needs, instead of always relying on existing ones.
Resources
Interesting (must read !) resources that are not always documented in books:
WPF Apps With The Model-View-ViewModel Design Pattern, Josh Smith
http://msdn.microsoft.com/en-us/magazine/dd419663.aspx
Writing More Efficient ItemsControls, Charles Petzold
http://msdn.microsoft.com/en-us/magazine/dd483292.aspx
Using DrawingVisual Objects, MSDN
http://msdn.microsoft.com/en-us/library/ms742254.aspx
There are a lot of tutorials on WindowsClient.net, head over there and go through all of them. After that you might want to consider studying for the MCTS / MCPD in Visual Studio 2010 for Windows Development, that will certainly get you on the right track.
"WPF 4 Unleashed" by Adam Nathan.
You don't need anything else.
- Follow the MVVM pattern
- Don't use code-behind unless you really have to
- Try and keep all your logic in your ViewModels
- Try to make your views dumb, so that they only concern themselves with presentation
- Create standard control styles and templates and push them into resource dictionaries so that most of the XAML in your Views is plain and simple
- Use (and study) a good WPF Framework such as Caliburn Micro which will push you the direction of best practice
- Pick up a copy of Pro WPF in C# 2010
Online tutorials. What helped for me was doing some WPF with F# tutorials that were based off Petzold's book. They started off doing everything programmatically without designers, and without xaml, and I learned xaml later.
But that is just me. There are a lot of online tutorials out there, that will probably be quicker, yet less thorough than books.
What books are you going through, and why are you having trouble starting at the beginning?
Nice article to start: http://msdn.microsoft.com/en-us/magazine/dd419663.aspx
精彩评论