I have a combobox with a list of entries+actions as text and button:
[ Item #1 [Preview] v ]
| Item #2 [Preview] |
| Item #3 [Preview] |
| Item #4 [Preview] |
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.
Is there any way to limit drop-down to only V button? Or somehow else make buttons in the selected item clickable?
Here is my XAML
<ComboBox ItemsSource="{Binding LayoutsList}" >
<ComboBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Name}" />
<Button
Command="{Binding PreviewCommand}"
CommandParameter="{Binding}"
>Preview</Button>
</StackPanel>
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>