C# Class wpf_player.DefaultValueConverter

Converter Class that converts a default value to a given value.
Inheritance: System.Windows.Markup.MarkupExtension, IValueConverter
Mostrar archivo Open project: zencoders/sambatyon

Public Methods

Method Description
Convert ( object value, Type targetType, object parameter, System culture ) : object

Converts default value to the value to be shown

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

Converts back the shown value to the default value.

DefaultValueConverter ( ) : System

Default constructor

ProvideValue ( IServiceProvider serviceProvider ) : object

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

Method Details

Convert() public method

Converts default value to the value to be shown
public Convert ( object value, Type targetType, object parameter, System culture ) : object
value object
targetType System.Type
parameter object
culture System
return object

ConvertBack() public method

Converts back the shown value to the default value.
public ConvertBack ( object value, Type targetType, object parameter, System culture ) : object
value object
targetType System.Type
parameter object
culture System
return object

DefaultValueConverter() public method

Default constructor
public DefaultValueConverter ( ) : 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