Exemple #1
0
    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;
    }
Exemple #2
0
 protected virtual void OnValidationErrorChanging( CellValidationErrorRoutedEventArgs e )
 {
   this.RaiseEvent( e );
 }