title: Accessing variables from XAML and object from ViewModel using Code Behind
body: <p>I'm a newbie in windows phone development. I would like to ask if it is possible to do this scenario. I need to access a variable in XAML using my code behind, then I will add it as an item to my existing list found in my View Model. Therefore, I need to access both of my View Model to get the list and the XAML to get the variable from the resources.</p>
  
  <p>Is this doable? If yes, how can I access it. This is what I have in my current XAML. </p>
  
  <pre><code>&lt;phone:PhoneApplicationPage.Resources&gt;
    &lt;system:String x:Key="scanName"&gt;SCAN&lt;/system:String&gt;
  &lt;/phone:PhoneApplicationPage.Resources&gt;
  </code></pre>
  
  <p>Thanks much,</p>