title: WP7 Silverlight -- tapping image in a stackpanel scrollview to show that same picture in another grid
body: <p>I am probably the absolute worst "coder" trying to create a Windows Phone 7 app, but I am in dire need of help, and some of you may even consider it to be laughably easy (which it probably is).</p>
  
  <p>My problem: How on earth do I code the tapping of a picture from one grid to display as a bigger image on another grid?</p>
  
  <p>And I'll elaborate:</p>
  
  <p>I have an app page (in landscape mode only), with two grids splitting the screen. </p>
  
  <p>The first grid (<code>smallgrid</code>) contains a Scrollviewer (<code>small</code>) with a Stackpanel (<code>smallimages</code>) of images reduced to 1/10 of their size within it, essentially showing thumbnails of images.</p>
  
  <p>The second grid (<code>contentgrid</code>) is designed where once you tap on a thumbnail image from <code>smallgrid</code> that image will be shown in <code>contentgrid</code></p>
  
  <p>By default, balloon0 is displayed in the <code>contentgrid</code> and will change when a person taps on one of the smaller images.</p>
  
  <p>I'll try to provide some mock code for this:</p>
  
  <pre><code>&lt;grid x:name="smallgrid"&gt;
    &lt;scrollviewer x:name="small"&gt;
      &lt;stackpanel x:name="smallimages"&gt;
        &lt;image="balloon0.jpg"&gt;&lt;image&gt;
        &lt;image="balloon1.jpg"&gt;&lt;image&gt;
        &lt;image="balloon2.jpg"&gt;&lt;image&gt;
        &lt;image="balloon3.jpg"&gt;&lt;image&gt;
      &lt;/stackpanel&gt;
    &lt;/scrollviewer&gt;
  &lt;/grid&gt;
  
  &lt;grid x:name="contentgrid"&gt;
    &lt;image source="balloon0.jpg"&gt;&lt;image&gt;
  &lt;/grid&gt;
  </code></pre>
  
  <p>The code behind is where I need help. I am thinking I either use a button that once clicked, that image then replaces the image in <code>contentgrid</code> but I have no idea how to do that.</p>
  
  <p>Or I can use a gesturelistener that when an image is tapped, it will replace the image in <code>contentgrid</code>... but I also don't know how to do that.</p>
  
  <p>Any insight is helpful. Thank you for any help, as I am not a C# coder, let alone know the language or WP7 silverlight too well.</p>