How to Create an Image Button in Nuclex

The Nuclex framework's GuiManager is an extremely well written, easy to use tool for creating GUIs in an XNA game. It comes with built in functionality to support buttons, sliders, progress bars and text inputs, and is capable of being extended to support custom controls. One custom control that I had a need for was an Image Button. An ImageButtonControl would be similar to a regular button, but using an icon instead of text. This would be used to create hotbars like the ones seen in an MMO or RTS.