private static object OnCoerceValidationError( DependencyObject sender, object value ) { if( value == null ) return value; Cell cell = ( Cell )sender; CellValidationErrorRoutedEventArgs cellValidationErrorRoutedEventArgs = new CellValidationErrorRoutedEventArgs( Cell.ValidationErrorChangingEvent, cell, ( CellValidationError )value ); cell.OnValidationErrorChanging( cellValidationErrorRoutedEventArgs ); return cellValidationErrorRoutedEventArgs.CellValidationError; }
protected virtual void OnValidationErrorChanging( CellValidationErrorRoutedEventArgs e ) { this.RaiseEvent( e ); }