You can easily make an Image Button with a few lines of XAML. What a blast right? When your parents get home, you can show them this and they might think you actually did something other than play Halo 3 or Kinect all day. Or if you are working, well get back to work.
(NOTE CHANGE TO ATTACHED FILE: I added code to it, it was an empty file, so it should work for the image, but you will still need to add the codebehind code.)
You can replace “alienthor.png” with the image that you put in the code.
Run it and now have a button that you can use to add code to do something when you click the button.
Pretty simple. Now I should show you want to add to the button. Ok, double-click the image button, you will get a click event added to the Button and the code behind picks up a click event method:
Add the following: MessageBox.Show(“Hello my name is Thor”); //that is a semi-colon after the close parathesis
There is code attached, but it doesn’t include the code behind.