<Style TargetType="ComboBoxItem" x:Key="ComboBoxItemStyle">
<EventSetter Event="Selected" Handler="status_SelectionChanged"/>
</Style>
status_SelectionChanged
方法:
public void status_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
MessageBox.Show("1");
}
错误:无效 System.Windows.RoutedEventHandler
为什么?