C# Class wpf_player.LengthConverter

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

Public Methods

Method 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 method

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
return object

ConvertBack() public method

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
return object

LengthConverter() public method

Default constructor
public LengthConverter ( ) : System
return System

ProvideValue() public method

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