<Image MouseRightButtonDown="image1_MouseRightButtonDown" Source="Sunset.jpg" Grid.Row="2" Margin="156,141,0,55" Name="image1" Stretch="Fill" HorizontalAlignment="Left" Width="139.83" />
The handler will disable the image2.
private void image1_MouseRightButtonDown(object sender, MouseButtonEventArgs e)
{
image2.Visibility = Visibility.Hidden;
}
But how are you going to do vice-versa when the other image gets hidden.