C# Class wpf_player.LengthConverter

Converter class that converts seconds length to a more human readable string label.
Inheritance: System.Windows.Markup.MarkupExtension, IValueConverter
Afficher le fichier Open project: zencoders/sambatyon

Méthodes publiques

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

Converts the value in seconds to a label in the form MM:SS.

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

Performs inverse conversion. This method splits the string and convert them in a time value expressed in seconds

LengthConverter ( ) : System

Default constructor

ProvideValue ( IServiceProvider serviceProvider ) : object

Method needed for the extension system. Return the current instance.

Method Details

Convert() public méthode

Converts the value in seconds to a label in the form MM:SS.
public Convert ( object value, Type targetType, object parameter, System culture ) : object
value object Time value in seconds
targetType System.Type Unused param
parameter object Unused param
culture System Unused param
Résultat object

ConvertBack() public méthode

Performs inverse conversion. This method splits the string and convert them in a time value expressed in seconds
public ConvertBack ( object value, Type targetType, object parameter, System culture ) : object
value object String containing time value information in the form MM:SS
targetType System.Type Unused param
parameter object Unused param
culture System Unused param
Résultat object

LengthConverter() public méthode

Default constructor
public LengthConverter ( ) : System
Résultat System

ProvideValue() public méthode

Method needed for the extension system. Return the current instance.
public ProvideValue ( IServiceProvider serviceProvider ) : object
serviceProvider IServiceProvider
Résultat object