title: Multiple dataContext for one control - MVVM
body: <p>I am not sure if my question header represent exactly my problem, I will do the best to explain:</p>
  
  <p>I have a grid cell DataTemplate: (the grid belong to third party company but it`s not important for my question)</p>
  
  <pre><code>&lt;DataTemplate&gt;
      &lt;TextBlock&gt;
          &lt;Hyperlink Command="{Binding OpenLinkCommand}"&gt; 
              &lt;Hyperlink.ToolTip&gt;
                  &lt;TextBlock Text="{Binding Data.MapLink}"/&gt;
              &lt;/Hyperlink.ToolTip&gt;
              &lt;TextBlock Text="{Binding Data.MapLink}" TextDecorations="underline"&gt;
          &lt;/Hyperlink&gt;
      &lt;/TextBlock&gt;
  &lt;/DataTemplate&gt;
  </code></pre>
  
  <p>I want make this DataTemplate to show some hyperlink ("Data.MapLink" is the object which contain the link value) and each click on this link will fire the command "OpenLinkCommand".</p>
  
  <p>The problem is that "Data.MapLink" and "OpenLinkCommand" are located in different dataContext and then I have to choose one of the next choices:</p>
  
  <ol>
  <li><p>leave hyperlink dataContext as it - the command won`t work and the hyperlink will get the Data.MapLink value.</p></li>
  <li><p>change hyperlink dataContext to the command datacontext - The command will work but the hyperlink name will be empty.</p></li>
  </ol>
  
  <p>Regretfully I don`t have option put those items in same dataContext so I must find a way how to tell the command that it dataContext is "X" and tell the hyperLink that it dataContext is "Y".</p>
  
  <p>I am hoping that my question is clear
  How can I solve this problem?</p>