title: WPF Binding how to get object reference
body: <p>I have a ListView showing a list of Accounts using MVVM &amp; a custom template and working fine
  Now on clicking the Acct Name, we need to execute a custom action which requires the current Acct object</p>
  
  <p>Is there a way to set the Label.Tag property to the Acct object ?</p>
  
  <p>the xaml def is below
  env is vs2010 .net 4.0 c#</p>
  
  <pre><code>&lt;ListView Name="lv1" Grid.Column="1" Grid.Row="4"
      ItemsSource="{Binding AccountsList}"
      Background="Transparent" BorderThickness="0"&gt;
      &lt;ItemsControl.ItemTemplate&gt;
          &lt;DataTemplate&gt;
              &lt;StackPanel Orientation="Horizontal"&gt;
                  &lt;Image Source="/asm1;component/Images/Icons/pdf1.png" Width="12" Height="12" /&gt;
                  &lt;Label Content="{Binding Name}" Margin="0,0,25,0" 
                      ContextMenu="{x:Null}" Name="lblacctItem" 
                      MouseDoubleClick="lbl_MouseDoubleClick" /&gt;
              &lt;/StackPanel&gt;
          &lt;/DataTemplate&gt;
      &lt;/ItemsControl.ItemTemplate&gt;
      &lt;ListView.ItemsPanel&gt;
          &lt;ItemsPanelTemplate&gt;
              &lt;WrapPanel Background="Transparent" 
                  Width="{Binding (FrameworkElement.ActualWidth), RelativeSource={RelativeSource AncestorType=ScrollContentPresenter}}" 
                  ItemWidth="{Binding (ListView.View).ItemWidth, RelativeSource={RelativeSource AncestorType=ListView}}" 
                  MinWidth="{Binding ItemWidth, RelativeSource={RelativeSource Self}}" 
                  ItemHeight="{Binding (ListView.View).ItemHeight, RelativeSource={RelativeSource AncestorType=ListView}}" /&gt;
          &lt;/ItemsPanelTemplate&gt;
      &lt;/ListView.ItemsPanel&gt;
  &lt;/ListView&gt;
  </code></pre>