title: Button to pass an ObservableCollection through EventTrigger
body: <p>I'm struggling to pass my <code>ObservableCollection&lt;Content&gt;</code> through a <code>Button</code>via the <code>EventTrigger</code>.
  For now I'm having such code in my xaml:</p>
  
  <pre><code> &lt;Button Name="SendListButton" Content="Go" HorizontalAlignment="Left" Margin="725,737,0,0" VerticalAlignment="Top" Width="75" &gt;
              &lt;i:Interaction.Triggers&gt;
                  &lt;i:EventTrigger EventName="MouseDoubleClick"&gt;
                      &lt;command:EventToCommand Command="{Binding SendContent}"  
                          CommandParameter="{Binding  ElementName=SendListButton}" /&gt;
                  &lt;/i:EventTrigger&gt;
              &lt;/i:Interaction.Triggers&gt;
          &lt;/Button&gt;
  </code></pre>
  
  <p>In my <code>MainViewModel.cs</code>, I'm having that:</p>
  
  <pre><code>public class MainViewModel : ViewModelBase,IMainViewModel
      {
  public ICommand SendContent { get; set; }
  public ObservableCollection&lt;Content&gt; ContentsToTransfer { get; set; }
  
  public MainViewModel()
          {
              SendContent = new RelayCommand(OnSendContent);
  
              ContentsToTransfer = new ObservableCollection&lt;Content&gt;();
          }
  
  private void OnSendContent(ObservableCollection&lt;Content&gt; ContentsToTransfer)
          {
              if (ContentsToTransfer.Any())
              {
                  //Code executed by the button. 
              }
          }
  </code></pre>
  
  <p>Can you help me out explainig me how I should pass my ObeservableCollection through the EventTrigger in order to  send its content to a database?</p>
  
  <p>Thx!</p>