title: Windows Phone 7, Conditional Rectangle fIll to new ImageSource possible?
body: <p>So I have a seemingly simple question:</p>
  
  <p>How do I go about coding an "if rectangle.fill is X, change fill to this specific image" in C#? Here is my rectangle in XAML:</p>
  
  <pre><code>&lt;Rectangle Height="auto" Width="auto" x:Name="Honey" ManipulationStarted="Honey_Started"&gt;
                      &lt;Rectangle.Fill&gt;
                          &lt;ImageBrush ImageSource="image100.jpg" /&gt;
                      &lt;/Rectangle.Fill&gt;
                  &lt;/Rectangle&gt;
  </code></pre>
  
  <p>That was simple, but how would the code behind look? The following example is obviously wrong, but am just including it to hopefully show what I wish to accomplish.</p>
  
  <pre><code>private void Honey_Started(object sender, ManipulationStartedEventArgs e)
      {
  
          if (Honey.Fill == image100.jpg)
          {
              Honey.Fill = 900image.jpg;
          }
      }
  </code></pre>