title: Get XAML UI element from JavaScript
body: <p>I've tried to Google for this but maybe I'm not forming my query right, 'cos I am getting a lot of nonsense and irrelevance back. Probably too simple a question. Apologies it's been a while since I last did Silverlight!</p>
  
  <p>If I have a XAML element:</p>
  
  <pre><code>&lt;Image Canvas.Top="128" x:Name="img4_7" Width="180.3" Height="117" Source="monkey1.jpg" Stretch="Fill" Canvas.Left="-3.344" Opacity="0.595"/&gt;
  </code></pre>
  
  <p>How can I get that in JavaScript using the x:Name? I'm looking for something like getElementById(), but for Silverlight. I almost want something like this:</p>
  
  <pre><code>img4_7=rootElement.children.getItem('img4_7');
  </code></pre>
  
  <p>Obviously, this doesn't work!</p>
  
  <p>I'm not using ASP.NET AJAX.</p>
  
  <p>Thanks for any help for this noob question!</p>