-1

sample combobox (xaml):

<ComboBox Height="23" Name="status" IsReadOnly="True" ItemsSource="{Binding}" Width="120" SelectedItem="test">
</ComboBox>

how i can starting event click (etc...) or changed, on my combobox?

H.B.
  • 166,899
  • 29
  • 327
  • 400
user1478466
  • 29
  • 2
  • 7
  • Here there is an example how to use EventTriggers in xaml: [How to set MouseOver event/trigger for border in XAML?](http://stackoverflow.com/questions/2388429/how-to-set-mouseover-event-trigger-for-border-in-xaml) – Anatolii Gabuza Jun 27 '12 at 12:51

1 Answers1

0

You can add events for the mouse to the combobox by typing Mouse and seeing the options available. Here is an event you can add: MouseDown="ComboBox_MouseDown"

<ComboBox MouseDown="ComboBox_MouseDown" Height="23" Name="status" IsReadOnly="True" ItemsSource="{Binding}" Width="120" SelectedItem="test">
                                </ComboBox>

Then in the code behind add:

private void ComboBox_MouseDown(object sender, MouseButtonEventArgs e)
{
    //Your code here
}
Jon Dosmann
  • 667
  • 7
  • 20