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

            if (this.Child != null)
            {
                CellEditor.SetHasError(( DependencyObject )this.Child, false);
            }
        }