title: Interaction Triggers in Style in ResourceDictionary WPF
body: <p>I have a <code>ComboBox</code> which I need to use in several places in my application, so I set most of the properties of that <code>ComboBox</code> in <code>ResourceDictionary</code> and use that as a Style where ever I need it.</p>
  
  <p>Style for the <code>ComboBox</code> is: </p>
  
  <pre><code>&lt;Style TargetType="{x:Type ComboBox}" x:Key="ComboBoxBranch"&gt; 
      &lt;Setter Property="ItemsSource" Value="{Binding Branches}"&gt;&lt;/Setter&gt;
      &lt;Setter Property="DisplayMemberPath" Value="BranchName"&gt;&lt;/Setter&gt;              
      &lt;Setter Property="SelectedItem" Value="{Binding SelectedBranch}"&gt;&lt;/Setter&gt;        
  &lt;/Style&gt;
  </code></pre>
  
  <p>and I am using it like this in my XAML:</p>
  
  <pre><code>&lt;ComboBox Style="{StaticResource ComboBoxBranch}"&gt;
       &lt;i:Interaction.Triggers&gt;
            &lt;i:EventTrigger EventName="SelectionChanged"&gt;
               &lt;i:InvokeCommandAction Command="{Binding SelectCustomerCommand}" CommandParameter="{Binding SelectedBranch}" &gt;&lt;/i:InvokeCommandAction&gt;
            &lt;/i:EventTrigger&gt;
       &lt;/i:Interaction.Triggers&gt;
  &lt;/ComboBox&gt;
  </code></pre>
  
  <p>I want to move the interaction trigger code as well to <code>ResourceDictionary</code>, so I don't need to write it in all my xamls. Is it possible somehow?</p>