C# Class System.Waf.Presentation.Converters.ValidationErrorsConverter

Multi value converter that converts a ValidationError collection to a multi-line string error message. Use the binding for the second value to update the target when the ValidationError collection changes. Set the path of the second binding on the Count property: Binding Path="(Validation.Errors).Count".
Inheritance: IMultiValueConverter
Afficher le fichier Open project: jbe2277/waf

Méthodes publiques

Méthode Description
Convert ( object values, Type targetType, object parameter, CultureInfo culture ) : object

Converts a collection of ValidationError objects into a multi-line string of error messages.

ConvertBack ( object value, Type targetTypes, object parameter, CultureInfo culture ) : object[]

This method is not supported and throws an exception when it is called.

Method Details

Convert() public méthode

Converts a collection of ValidationError objects into a multi-line string of error messages.
public Convert ( object values, Type targetType, object parameter, CultureInfo culture ) : object
values object The first value is the collection of objects.
targetType Type The type of the binding target property. This parameter will be ignored.
parameter object The converter parameter to use. This parameter will be ignored.
culture System.Globalization.CultureInfo The culture to use in the converter.
Résultat object

ConvertBack() public méthode

This method is not supported and throws an exception when it is called.
Throws this exception when the method is called.
public ConvertBack ( object value, Type targetTypes, object parameter, CultureInfo culture ) : object[]
value object The value that is produced by the binding target.
targetTypes Type The array of types to convert to.
parameter object The converter parameter to use.
culture System.Globalization.CultureInfo The culture to use in the converter.
Résultat object[]