My user interface makes use of customized Button
s: They contain both an Image
and a Label
.
I customized a single Button
you could:
Derive a class from button, add the two properties and overide the control template. using a usercontrol that contains the button you will be forced to do work arounds such as exposing the button as a property. (to attach commands, get the click event etc.)
create your own straight class that has the two properties, and set it to be the buttons content, and create a data template for it, then the button stays as a straight button. If you want these properties to be set from the xaml, derive from control or something that allows dependency properties
I would use the second approach, its simple, and quick.