title: Passing information through viewmodels
body: <p>When opening a client file, i need the clientId that was selected to indicate which record should be queryed. I'm trying to expose the ViewModel as a static resource on the page so that it can be easily accessible by the binding. </p>
  
  <p>Reason for Binding to a static resource can be found through this link.
  <a href="http://www.telerik.com/help/silverlight/gridview-troubleshooting-blank-cells.html" rel="nofollow noreferrer">http://www.telerik.com/help/silverlight/gridview-troubleshooting-blank-cells.html</a> </p>
  
  <pre><code>// Open an individual record when double-clicked.
  public void Open()
  {
      if (SelectedItem != null)
      {
          var vm = new LoanViewModel(Events);
          vm.ById(SelectedItem.Id);
          Events.PublishOnUIThread(new ShowTabEvent(vm));
      }
      this.OnPropertyChanged("Items");
  }
  </code></pre>
  
  <p>LoanViewModel.cs</p>
  
  <pre><code>public LoanViewModel()
  { .... Query needs LoanId}
  
  public void ById(int id)
  {}
  </code></pre>
  
  <p>More info is from this linked Question <a href="https://stackoverflow.com/questions/27115192/having-my-viewmodel-appear-in-namespace-dropdown/27133076#27133076">Having my Viewmodel appear in namespace dropdown</a></p>