XAML code:
<Button Name="AButton" Width="50" Height="30" Click="OnImageButtonClick">
<Image Source="data\YourImageName.jpg"></Image></Button>
<Button Name="Button2" BorderBrush="Black">Click the picture.</Button>
Here is the button click event handler.
void OnImageButtonClick(object sender, RoutedEventArgs e)
{
Button2.FontSize = 16;
Button2.Content = "This is an image";
Button2.Background = Brushes.Red;
}
Sub OnClick5(ByVal sender As Object, ByVal e As RoutedEventArgs)
btn6.FontSize = 16
btn6.Content = "This is my favorite photo."
btn6.Background = Brushes.Red
End Sub