replacing an image
WPF
1
Posts
1
Posters
0
Views
1
Watching
-
Silverlight/C# project, I added an image object with a default image, the following code was created
<Image Height="403" HorizontalAlignment="Left" Margin="1212,86,0,0" Name="image1" Stretch="Fill" VerticalAlignment="Top" Width="360" Source="/reposMTX;component/Images/09.JPG" />How can I change the image when a button is clicked?
I tried thisimage1.Source = new BitmapImage(new Uri("http://tpsa11/images/shi.bmp", UriKind.RelativeOrAbsolute));
but does not seem to work