title: Passing parameters to Custom control ViewModel, MVVM
body: <p>I am declaring a custom control within a view. The Control has its own ViewModel which I am declaring within the parent view's XAML. I would like to pass a value into this child ViewModel by binding but I am not using a dependency property and would rather not. Is there a way to go about this? or am I going to need a hefty rework?</p>
  
  <p>Declaration of the child ViewModel including the binding that does not work:</p>
  
  <pre><code>&lt;Window.Resources&gt;
      &lt;uc:PagerViewModel x:Key="PagerDataContext" PagesContent="{Binding DisplayedRawData}"&gt;
      &lt;/uc:PagerViewModel&gt;
  &lt;Window.Resources&gt;
  </code></pre>
  
  <p>Declaration of custom control:</p>
  
  <pre><code>   &lt;uc:Pager Grid.Row="1" DataContext="{StaticResource PagerDataContext }"/&gt;
  </code></pre>
  
  <p>Child ViewModel relivent Code:</p>
  
  <pre><code>    public string PagesContent
      {
          get
          {
              return _pagesContent;
          }
          set
          {
              _pagesContent = value;
              OnPropertyChanged("PagesContent");
          }
      }
      private string _pagesContent = string.Empty;
  </code></pre>