C# Class wpf_player.SizeToMarginConverter

Converter class used to convert position information to margin setup to move the position indication in the GUI
Inheritance: System.Windows.Markup.MarkupExtension, IMultiValueConverter
Afficher le fichier Open project: zencoders/sambatyon

Méthodes publiques

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

Converts the buffer position information to margin information

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

Perform inverse conversion. Currently Not supported

ProvideValue ( IServiceProvider serviceProvider ) : object

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

SizeToMarginConverter ( ) : System

Default constructor for this class. Sets all margins to zero.

Method Details

Convert() public méthode

Converts the buffer position information to margin information
public Convert ( object values, Type targetType, object parameter, System culture ) : object
values object Three elements array. The first is the buffer portion, the second is the bar size /// and the third is the file size
targetType System.Type Unused param
parameter object Unused Param
culture System Unused Param
Résultat object

ConvertBack() public méthode

Perform inverse conversion. Currently Not supported
public ConvertBack ( object value, Type targetType, object parameter, System culture ) : object[]
value object
targetType System.Type
parameter object
culture System
Résultat object[]

ProvideValue() public méthode

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

SizeToMarginConverter() public méthode

Default constructor for this class. Sets all margins to zero.
public SizeToMarginConverter ( ) : System
Résultat System