C# Class SilverlightFX.Data.Formatter

A base class for formatting value converters.
Inheritance: IValueConverter
Exibir arquivo Open project: nikhilk/silverlightfx

Protected Methods

Method Description
Format ( object value, string format, CultureInfo culture ) : object

Formats the specified value using the specified format. The base class implementation simply performs a String.Format. Derived classes can choose to modify the value before it is formatted, or use the formatted value after calling into the base implementation.

Formatter ( ) : System

Initializes an instance of a Formatter.

Formatter ( Type supportedTargetType ) : System

Initializes an instance of a Formatter with the specified supported target type.

Private Methods

Method Description
IValueConverter ( object value, Type targetType, object parameter, CultureInfo culture ) : object

Method Details

Format() protected method

Formats the specified value using the specified format. The base class implementation simply performs a String.Format. Derived classes can choose to modify the value before it is formatted, or use the formatted value after calling into the base implementation.
protected Format ( object value, string format, CultureInfo culture ) : object
value object The value to be formatted.
format string The format string to use.
culture System.Globalization.CultureInfo The culture to use when formatting.
return object

Formatter() protected method

Initializes an instance of a Formatter.
protected Formatter ( ) : System
return System

Formatter() protected method

Initializes an instance of a Formatter with the specified supported target type.
protected Formatter ( Type supportedTargetType ) : System
supportedTargetType System.Type The type of value that the formatter converts values into.
return System