C# 클래스 wpf_player.LengthConverter

Converter class that converts seconds length to a more human readable string label.
상속: System.Windows.Markup.MarkupExtension, IValueConverter
파일 보기 프로젝트 열기: zencoders/sambatyon

공개 메소드들

메소드 설명
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