I understand that i can overlay an image on a button, but is it possible that a button can take the exact size of an image? In other words, I want to get rid of the rectangular shaped button and adapt it to the size and shape of the image.
Convert image to a button WPF
2231
21-Sep-2013
Updated on 21-Sep-2013
Sumit Kesarwani
21-Sep-2013You can set the Template of button like below:
TemplateBinding is used to set the Content property in order to set the Content inside the ControlTemplate, as you can move this ControlTemplate to the Resources and can use it for multiple button and you can set the content on button itself.