<Style TargetType="ComboBoxItem" x:Key="ComboBoxItemStyle">
<EventSetter Event="Selected" Handler="status_SelectionChanged"/>
</Style>
status_SelectionChanged
方法:沒有有效RoutedEventHandler
public void status_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
MessageBox.Show("1");
}
Error: not valid System.Windows.RoutedEventHandler
爲什麼呢?