C# Класс wpf_player.LengthConverter

Converter class that converts seconds length to a more human readable string label.
Наследование: System.Windows.Markup.MarkupExtension, IValueConverter
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

Convert() публичный Метод

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
Результат object

ConvertBack() публичный Метод

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
Результат object

LengthConverter() публичный Метод

Default constructor
public LengthConverter ( ) : System
Результат System

ProvideValue() публичный Метод

Method needed for the extension system. Return the current instance.
public ProvideValue ( IServiceProvider serviceProvider ) : object
serviceProvider IServiceProvider
Результат object