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
Datei anzeigen Open project: zencoders/sambatyon

Public Methods

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

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

ConvertBack() public method

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

ProvideValue() public method

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

SizeToMarginConverter() public method

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