title: WPF - Combobox with button in ItemTemplate, click on SelectedItem
body: <p>I have a combobox with a list of entries+actions as text and button:</p>
  
  <pre class="lang-none prettyprint-override"><code>[ Item #1 [Preview] v ]
  | Item #2 [Preview]   |
  | Item #3 [Preview]   |
  | Item #4 [Preview]   |
  </code></pre>
  
  <p>The problem is user can only click buttons on the drop-down list, but not on selected item. Basically any click on ComboCox causes drop-down opened.</p>
  
  <p>Is there any way to limit drop-down to only V button? Or somehow else make buttons in the selected item clickable?</p>
  
  <p>Here is my XAML</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;ComboBox ItemsSource="{Binding LayoutsList}" &gt;
      &lt;ComboBox.ItemTemplate&gt;
          &lt;DataTemplate&gt;
              &lt;StackPanel Orientation="Horizontal"&gt;
                  &lt;TextBlock Text="{Binding Name}" /&gt;
                  &lt;Button 
                      Command="{Binding PreviewCommand}" 
                      CommandParameter="{Binding}"
                      &gt;Preview&lt;/Button&gt;
              &lt;/StackPanel&gt;
          &lt;/DataTemplate&gt;
      &lt;/ComboBox.ItemTemplate&gt;
  &lt;/ComboBox&gt;
  </code></pre>