Re-usable button class for caption buttons


As a developer creating an application with custom chrome, I want a button class that will I can use to add the caption buttons (min/max/close) to the top of my application window.  I want the ability to mimic the standard Windows Glass caption button look and feel, but it should also be flexible enough for me to customize the colors, glow effects, rounded corners, etc. to match my application's particular style.
The following CodeProject article gives and example of how to do it: http://www.codeproject.com/KB/WPF/WPF_xaml_taskbar_window.aspx
The source from this article is checked in under "Third Party \ WPF XAML Notify Icon and Popup Code".