Creating an image+text button with a control template?

Define a CustomControl like this in .cs public class MyButton : Button { static MyButton() { //set DefaultStyleKeyProperty } public ImageSource ImageSource { get { return (ImageSource)GetValue(ImageSourceProperty); } set { SetValue(ImageSourceProperty, value); } } // Using a DependencyProperty as the backing store for ImageSource. This enables animation, styling, binding, etc… public static readonly DependencyProperty ImageSourceProperty … Read more