title: Resetting binding's source in wpf
body: <p>I have this list box:</p>
  
  <pre><code>&lt;ListBox DockPanel.Dock="Left" HorizontalAlignment="Left" Width="150" 
                   ItemsSource="{Binding PcConfigurations, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"&gt;
              &lt;ListBox.ItemTemplate&gt;
                  &lt;DataTemplate&gt;
                      &lt;TextBlock Text="{Binding}"&gt;
                          &lt;i:Interaction.Triggers&gt;
                              &lt;i:EventTrigger EventName="MouseDoubleClick"&gt;
                                  &lt;cmd:EventToCommand Command="{Binding LocalConfigurationCommand}"
                                      CommandParameter="{Binding}"/&gt;
                              &lt;/i:EventTrigger&gt;
                          &lt;/i:Interaction.Triggers&gt;
                      &lt;/TextBlock&gt;
                  &lt;/DataTemplate&gt;
              &lt;/ListBox.ItemTemplate&gt;
          &lt;/ListBox&gt;
  </code></pre>
  
  <p>When I run the application I got this error in the output:</p>
  
  <pre><code>System.Windows.Data Error: 40 : BindingExpression path error: 'LocalConfigurationCommand' property not found on 'object' ''PcConfiguration_0CC914504C64AE357F440BEA28C5F73FD3627331B5E407B6D7DD75076453D393' (HashCode=20396001)'. BindingExpression:Path=LocalConfigurationCommand; DataItem='PcConfiguration_0CC914504C64AE357F440BEA28C5F73FD3627331B5E407B6D7DD75076453D393' (HashCode=20396001); target element is 'EventToCommand' (HashCode=27147755); target property is 'Command' (type 'ICommand')
  </code></pre>
  
  <p>I guess it is because the current path that the </p>
  
  <blockquote>
    <p>EventToCommand Command="{Binding LocalConfigurationCommand}"....</p>
  </blockquote>
  
  <p>is looking for is set to the 'location' of what the listbox has set in its binding.</p>
  
  <p>So I'd like to ask how can I put there location of my ViewModel, so it can find that command, but the location in <code>CommandParameter={Binding}</code> will still be current item from ListBox.</p>