private void OnInputValidationError(object sender, InputValidationErrorEventArgs e) { if (this.Child != null) { CellEditor.SetHasError(( DependencyObject )this.Child, true); } }
protected override void OnPreviewGotKeyboardFocus(KeyboardFocusChangedEventArgs e) { base.OnPreviewGotKeyboardFocus(e); if (this.Child != null) { CellEditor.SetHasError(( DependencyObject )this.Child, false); } }