title: Xaml C# replacing images from an array of images
body: <p>Ik in windows forms I could add images in resources and then change the images as users click on an event handler not sure whats changed in Xaml but I cant figure it out. </p>
  
  <pre><code>private void guessClick(object sender, RoutedEventArgs e)
  {
      wrongGuesses++;
      hangmanPicture.Image = hangmanImage[wrongGuesses];
  }
  </code></pre>
  
  <p>if I just put <code>hangmanPicture = hangmanImage[wrongGuesses];</code>
  I get can not convert. I don't understand why its trying to convert anything. </p>