C# Class Microsoft.Samples.KMoore.WPFSamples.DateControls.DateTimeValueConverter

Convert between DateTime and string, it's the default Converter for DatePicker.DateValueConverter
Inheritance: IValueConverter
Afficher le fichier Open project: daszat/zetbox

Méthodes publiques

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

Convert DateTime to a formatted string(ShortDatePattern)

ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object

Convert input string to DateTime

Method Details

Convert() public méthode

Convert DateTime to a formatted string(ShortDatePattern)
public Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object DateTime
targetType System.Type string
parameter object null
culture System.Globalization.CultureInfo
Résultat object

ConvertBack() public méthode

Convert input string to DateTime
public ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object string
targetType System.Type DateTime
parameter object null
culture System.Globalization.CultureInfo
Résultat object