So, let's say I have a ComboBox with a custom data template. One of the elements of the data template is the button:
<ComboBox Width="150" ItemsSource="{Binding MyItems}">
<ComboBox.ItemTemplate>
<DataTemplate>
<Button Content="ClickMe" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
The problem is that the button eats a click and the item is not selected if the button is selected. This means that the pull does not disappear and the item is not selected.
I WHY this is happening.
Is there any way around this? Perhaps a way to handle the click of a button (I attach to the command) and tell her to continue the chain so that the combo box can also handle the click?
Note. I see my problem in Silverlight, but I assume that exactly the same behavior can be seen with WPF.