Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
In the last exercise, changing the BorderBrush or BorderThickness properties of the Button has no effect on the display. In fact, none of the appearance properties except Width and Height have any effect. That’s pretty rude, don’t you think? Controls expose an entire set of properties that can be set to control their appearance, and a well-behaved control template will respect those property settings, or at least any that apply to the new visual tree. XAML exposes a markup extension for doing just that, and it’s easy to use: