Changing the button based on a function key

The following two styles will change the template of a button to an image of a HDD when the button is the F2 button. The WikiSBButtonStyle is what you add to the Default styles for the button, doing this will apply the style to all the buttons in the application, and in the case they are the F2 button, the HDD will be visible.

The HDD graphic is provided by the following template;

Note that the template must be defined before the styles that reference it, otherwise the XAML compilers will not find it.

This style was tested in 6.0.1.2135