I have these three controls:
<Button x:Name="btn" />
<Image x:Name="imagem01" />
<Image x:Name="imagem02" />
Let's say I upload an image in " imagen01 " using:
OpenFileDialog ofdImage = new OpenFileDialog();
ofdImage.Filter = "JPEG Files|*.jpg|Bitmap Files|*.bmp|Gif Files|*.gif";
ofdImage.DefaultExt = "jpg";
ofdImage.FilterIndex = 1;
if (ofdImage.ShowDialog() == true)
{
this.imagem02.Source = new BitmapImage(new Uri(ofdImage.FileName));
}
What is the code I should write, associated with the " btn " button, to load the same image I have in " imagem01 " into image02. >