Geeks With Blogs
Doug Butscher Nothin' but .NET!

For those of you who attended my Oct. 23, 2007, 6:00pm presentation (and even those of you who didn't) on Windows Presentation Foundation with a focus on XAML and the Provider Model, I promised to put some links up for your reference.

I'm trying to upload the actual PowerPoint presentation , but I don't think the GWB upload tool likes pptx's, or zip files for that matter.

To give a brief description of presentation I gave, I talked about WPF, XAML, code-behind (using C#) and the Provider Model.

WPF is Microsoft's new way of designing user interfaces. Period. It uses XAML, which is an XML-based way of marking up a UI. If you're using VS 2005, you can download the .net 3.0 and Silverlight extensions and you'll be able to work in WPF (although you won't have the neat tools that are coming out in VS 2008, link below)
Several tools render XAML, most notably Microsoft Expression Blend, which is a really neat way to allow GUI designers and hard-core developers to collaborate.
XAML uses DirectX, which means it takes full advantage of your graphics card, as opposed to having your CPU handle all of the software rendering.

Provider Model
The provider model is a formal, standard solution to a common software problem. For example, if you have an app that needs to access data from Access, XML, TXT, SQL 7 or SQL 2005, you'd typically have to write all of that code, with many perils and twists and turns, throughout one class library. You may break it out into many classes or assemblies, but you're still faced with the problem (at the application level) of choosing which implementation to invoke. The provider model lets you inherit from ProviderBase, and you then implement your many derived classes, each one with a specific data-access task. You also need to implement a configuration settings module, and an interface, but that's about it. Then, in your hosted app.config file, you just set the provider you want to use, and your application uses it. If you want to switch, stop your app, change the config file, restart the app, and you're using a different implementation. This is great because you can create mock providers, which can isolate the provider and tell you if you're consuming what the provider is providing correctly. You can have multiple implementations, each one tested and stabile, and not have to worry about changing code when your business requirements change.

This is great, Doug. But how do I get started?

To get started with Microsoft Visual Studio 2008 Beta 2 (codenamed "Orcas"), go to the MSDN download site (link below). You can download different versions of the IDE (like Professional or Team Foundation Server), or you can download a VPC with WinXP and Orcas on the VHD. Beware, I've had a lot of problems with the VPC, and you're probably better off carving out some space on your machine (or making your own VPC for it) and downloading just the IDE. The link for these downloads is here.

Also, I talked about Bill Steele who is doing an 18-part series on WPF: Soup to Nuts. You can look at his MSDN blog, or you can register for upcoming webcasts. He's doing really *really* cool stuff with WPF and Silverlight.

One final thing that I mentioned was Charles Petzold's All XAML Clock. This is really cool. This is an animated analog clock, built entirely in XAML, with no code-behind. All of the UI stuff, as well as the events and triggers, is built entirely in markup. Rock on.

I think that's it for now. If I can upload the PowerPoint and some source code, I'll come back and update this blog.

UPDATE: the links to the presentation and demo solution are below.

Get the zipped version of the PowerPoint here.
Get the zipped version of the WPF Demo solution here.

As always, please let me know if you have any questions.

Posted on Tuesday, October 23, 2007 9:37 PM | Back to top

Comments on this post: WPF / Provider Model Presentation -- KC .net User Group

# re: WPF / Provider Model Presentation
Requesting Gravatar...

Good job on the presentation last night. You really did do a great job.

Left by Jerod Crump on Oct 24, 2007 8:59 AM

# Anyone Know of Any ~3yr WPF/ XAML Developer?!?!
Requesting Gravatar...
I would appreciate the help! We've got a client that's looking to us to help them find a WPF/ XAML Developer - perm. position with a good stable company in Dallas (Mockingbird Stn.). Salary around 70K - Starting ASAP!! Greencard or US Citizens only call me at 214-245-7928. Jonelle Wilson
Left by Jonelle Wilson on Jun 18, 2009 5:31 PM

Your comment:
 (will show your gravatar)

Copyright © Doug Butscher | Powered by: