WPF ComboBoxItem with TextBlock and Button - Dropdown Closing Issue
<p>I have a ComboBox which as item have a <code>TextBlock</code> and <code>Button</code>. My requirement is to only close the dropdown when user click on button, not on Textblock or other area around the item. I am able to manage closing of <code>DropDown</code> on click of button, but still I am struggling to prevent DropDown to be closed when user click anywhere else except <code>Button</code>.</p>

<pre><code>&lt;ComboBox x:Name="MyComboBox"  ItemsSource="{Binding List}"&gt;
     &lt;ComboBox.ItemTemplate&gt;
       &lt;DataTemplate&gt;
        &lt;StackPanel Orientation="Horizontal"&gt;
         &lt;TextBlock Text={Binding}/&gt;
         &lt;Button Content="OK" Width="auto"/&gt;
        &lt;/StackPanel&gt;
       &lt;/DataTemplate&gt;
     &lt;/ComboBox.ItemTemplate&gt;
&lt;/ComboBox&gt;
</code></pre>