I want to put an image 16/32 pixel size on a custom control and change that image during runtime depending on what the user is doing. For example, if the user is valid I want the an image on the control to show they are valid - say like a green person image - equally I want that image to change to a red person if they are not valid. The reasons for validity are not important - changing the image is.
I can see how that is done partly with a standard button control - but it's not so obvious how this is all wired up with a custom control.
Can anyone help?
Do you have to put an image control in the xaml for the custom control? - if so how is this wired up to images that you have stored in the Images folder of your project?