private void UserControl_LostFocus(object sender, RoutedEventArgs e) { //(listView1.Background as SolidColorBrush).Color = _IDEState.NotFocusedElementColor; CodeEditorView.UnHighlightError(); //e.Handled = false; }
private void ErrorItem_UnSelected(object sender, RoutedEventArgs e) { ListViewItem item = sender as ListViewItem; CompileError error = item.Content as CompileError; if (error != null && error.IsActive && IsFocused) { CodeEditorView.UnHighlightError(); } //e.Handled = true; }