How do I toggle between two images on a Button?
I have a “Lock” and “Unlock” image I would like to use on the same button.
So far I have used the property window to set a single image..
UPDATE:
Many good answers, but I should have mention that my two images is in the Property folder. How do I access them with a relative path?
You will most likely have to change the
Button.Imageproperty in the code-behind. See the MSDN Documentation for information and a sample on how to do this.