title: Mouseover button binding in WPF
body: <p>What technique could be used in <code>WPF</code> to show <code>TextBlock</code> <code>Text</code> based on the <code>Button</code> that has mouse over on it? </p>
  
  <p><a href="https://i.stack.imgur.com/GbDrd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GbDrd.png" alt="enter image description here"></a></p>
  
  <p>The UI is organized as follows:</p>
  
  <pre><code>&lt;Grid&gt;
      &lt;Grid.ColumnDefinitions&gt;
          &lt;ColumnDefinition Width="Auto"/&gt;
          &lt;ColumnDefinition /&gt;
      &lt;/Grid.ColumnDefinitions&gt;
      &lt;StackPanel&gt;
          &lt;Button Content="Item1" Tag="This is the text for Item1"/&gt;
          &lt;Button Content="Item2" Tag="This is the text for Item2"/&gt;
          &lt;Button Content="Item3" Tag="This is the text for Item3"/&gt;
      &lt;/StackPanel&gt;
      &lt;TextBlock Grid.Column="2" Margin="20,0,0,0" TextWrapping="Wrap" Text="This text should be shown based on the mouseovered button"/&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>I was thinking to set the desired text to <code>Tag</code> of the <code>Button</code> but how to get that Tag to show on the mouse over event.</p>
  
  <p>Notes:</p>
  
  <ul>
  <li>I prefer to use individual <code>Buttons</code> here instead of <code>ListBox</code> or any other <code>ItemsControl</code> (the real application has more controls between these things etc.)</li>
  <li>The application follows MVVM</li>
  <li>I would prefer an approach other that setting the texts to UI directly (<code>Tag</code> of the <code>Button</code>)</li>
  </ul>