C# Class BuildIt.General.UI.Converters.BoolOpacityConverter

Converts between a bool and opacity. If true, returns 1 If false, returns 0, or the value specified as a parameter
Inheritance: IValueConverter
Mostra file Open project: builttoroam/BuildIt

Public Methods

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

Converts from bool to opacity

Method Details

Convert() public method

Converts from bool to opacity
public Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object The bool value
targetType System.Type The destination type
parameter object The low opacity value
culture System.Globalization.CultureInfo
return object