C# Class AC.AvalonControlsLibrary.Controls.MonthConverter

converts the date string to the value
Inheritance: IValueConverter
ファイルを表示 Open project: kienaiProject/ArtOfWords

Public Methods

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

Converts the month from a number to the actual string

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

Converts the value back from ComboBoxitem to a number that can be set for the current month

Method Details

Convert() public method

Converts the month from a number to the actual string
public Convert ( object value, Type targetType, object parameter, System culture ) : object
value object The value as integer
targetType System.Type Target type
parameter object The parameter to use
culture System The current culture in use
return object

ConvertBack() public method

Converts the value back from ComboBoxitem to a number that can be set for the current month
public ConvertBack ( object value, Type targetType, object parameter, System culture ) : object
value object The comboBoxItem Selected
targetType System.Type Target type
parameter object The parameter to use
culture System The current culture in use
return object