<Style TargetType="ComboBoxItem" x:Key="ComboBoxItemStyle">
<EventSetter Event="Selected" Handler="status_SelectionChanged"/>
</Style>
status_SelectionChanged method:
public void status_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
MessageBox.Show("1");
}
Error: not valid System.Windows.RoutedEventHandler
why?
I believe your method signature for SelectionChanged should use
RoutedEventArgs einstead ofSelectionChangedEventArgs eHere is the MSDN showing the RoutedEventHandler signature