How to begin WPF development?

后端 未结 13 1770
迷失自我
迷失自我 2020-12-02 04:56

I\'ve been using Winforms since .NET 1.1 and I want to start learning WPF.

I\'m looking for some good resources for a beginner in WPF. What should I read, what tools

相关标签:
13条回答
  • 2020-12-02 05:32

    The learning curve is high, but there are a lot of really good resources out there. And, the MSDN documentation and SDK samples (as some have already mentioned) are really good.

    One thing that will help you though, is just to acknowledge the learning curve up front, and to not get discouraged when it doesn't make sense. There really are a lot of concepts to 'grok' before you can do some even basic things.

    The WPF books already mentioned are all valuable in their own way. My personal experience was that I got a copy of WPF Unleashed first and tried reading it to no avail. It wasn't until I picked up Charles Petzold's Application = Code + Markup and read through some of that ... before I could even begin to understand WPF Unleashed. However, my brain needs detail before concepts actually sink in ...

    Tim Sneath has an excellent list of WPF bloggers that I have found valuable to get hooked into the WPF community: WPF Bloggers

    A few blogs on my must read list:

    • Rob Relyea
    • Dr. WPF
    • Josh Smith
    • Robby Ingebretsen
    • Kevin Moore
    • Charles Petzold
    • Pavan Podila

    Another thing I would do is get Dr. WPF's snippet library (located here). This is an extremely good way to learn some of the basic plumbing type concepts like Dependency Properties, Routed Events, and Routed Commands.

    Finally, I would get a copy of Blend (v2.5 is still in beta and free) and use that to generate xaml and then dive into that generated xaml to understand what you did in Blend, maps to the WPF API.

    Hope this helps. Good luck.

    0 讨论(0)
  • 2020-12-02 05:32

    I'd recommend the book Windows Presentation Foundation Unleashed by Adam Nathan

    Then I'd recommend you write an application. Like every other dev environment, there are no perfect guidelines. You have to find the ones that make the most sense for your circumstance. The only way to do that is to just start coding.

    As for tools, Visual Studio 2008 [Express] is your best bet. Or you might be able to limp along with XamlPad.

    0 讨论(0)
  • 2020-12-02 05:33

    I would also highly recommend using Blend together with VS 2008. Blend is great for creating animations.

    The Blend 2.5 Preview can be freely downloaded.

    I like the Designer WPF Blog, which has some good tutorials on how to do WPF stuff in Blend.

    0 讨论(0)
  • 2020-12-02 05:33

    Microsoft actually has a decent introduction on MSDN: http://msdn.microsoft.com/en-us/library/aa970268.aspx

    0 讨论(0)
  • 2020-12-02 05:34

    Teach Yourself WPF in 24 Hours http://ecx.images-amazon.com/images/I/41ZM9hbeGoL._BO2,204,203,200_PIsitb-sticker-arrow-click,TopRight,35,-76_AA240_SH20_OU01_.jpg

    http://Teach Yourself WPF in 24 Hours

    0 讨论(0)
  • 2020-12-02 05:35

    Although already listed above, I wanted to reiterate one point.

    Kaxaml is bar none, the best loose xaml editor out there. It has a snippet library, IntelliSense, split view, a xaml scrubber (pretty print), and more.

    I only wish we could hook up some assemblies (that you could reference from the xaml) ...

    Robby Ingebretsen, you rock.

    0 讨论(0)
提交回复
热议问题