title: get the source of image when user clicks it in c#
body: <p>i have included four photos in xaml code as follows</p>
  
  <pre><code>&lt;Image Grid.Column="0" 
         Source="Assets/1.png"
         Name="m1"
         MouseLeftButtonDown="selected"/&gt;
  &lt;Image Grid.Column="1" 
         Source="Assets/2.png"
         Name="m2"
         MouseLeftButtonDown="selected"/&gt;
  &lt;Image Grid.Column="2" 
         Source="Assets/3.png" 
         Name="m3"
         MouseLeftButtonDown="selected"/&gt;
  &lt;Image Grid.Column="3" 
         Source="Assets/4.png" 
         Name="m4"
         MouseLeftButtonDown="selected"/&gt;
  </code></pre>
  
  <p>i want to get the source of the image in "selected" function.
  my selected function is as follows </p>
  
  <pre><code>private void selected(object sender, MouseButtonEventArgs e)
  {
      //do somethings....
  }
  </code></pre>
  
  <p>How can i assign the source of the selected image(sender) to a new Image object?.
  something similar to follows</p>
  
  <pre><code>Image newimage = new Image();
  newimage.Source = //something..
  </code></pre>
  
  <p>Is there a way to dynamically get the source?</p>