I am currently working on a WPF application where I want the user to be able to click a button that places an image to the screen.
Currently I have a group box area which I want the images to show up. When the user click the “Another Picture” button, a new image object is created inside the group box and another picture is displayed within the group box (with the previous one still beside it). I am thinking that using the group box would work best so that the images will re-size automatically by the number of objects in the group box.
Really all i need to know is, is it possible to create an image object through the xaml.cs and if so how can i do it (and get it to go inside of the specified group box)
Thanks
I think your looking for this:
see: http://msdn.microsoft.com/en-us/library/system.windows.controls.image.source.aspx