title: How Do I Access The Panorama Control on my MainPage, From a ViewModel
body: <p>I'll mention the specifics first, and then mention what I'm trying to do.</p>
  
  <p>I have a method in my NewPersonViewModel</p>
  
  <pre><code>private void AddNewPerson()
  {
       // code to get Panoroma
       // more code to get the active panorama item
      _navigationService.NavigateTo(new Uri(@"/View/NewPerson.xaml", UriKind.Relative));
  }
  </code></pre>
  
  <p>But I'm not sure how to get the reference to my MainPage's Panorama.</p>
  
  <p>I know how to get the property of another ViewModel, like this:</p>
  
  <pre><code>var mainvm = (new ViewModelLocator()).Main;
  mainvm.Milestones.Add(NewMilestone);
  </code></pre>
  
  <p>However, unlike the Milestones property above, the Panorama is just a ui control in the mainpage.xaml and I don't have that available as something to retrieve from code.</p>
  
  <p>I'm using MVVMlight.</p>
  
  <p>I think they're shutting off internet access here in this building, gotta send.
  Steve</p>