MVVMbasics Logo

mobilemotion.eu Logo


Back to Class Reference home page


MVVMbasics.Converters
Class BooleanValueInverter

Windows.UI.Xaml.Data.IValueConverter | System.Windows.Data.IValueConverter
  implemented by MVVMbasics.Converters.BooleanValueInverter
 

 
public class BooleanValueInverter : Windows.UI.Xaml.Data.IValueConverter | System.Windows.Data.IValueConverter

Converter class that inverts (negates) boolean values. In addition, it can process an additional IValueConverter instance that is passed as ConverterParameter and calls this converter's Convert method before or after the inverting operation, depending on whether the additional converter expects a boolean value as input, or produces a boolean value as output.


Method Summary
object  Convert(object value, Type targetType, object parameter, ...)
Inverts boolean values, either directly or by applying an additional converter that expects or returns a boolean value.
 
Method Detail

Convert

public object Convert(object value, Type targetType, object parameter, ...)

Inverts boolean values, either directly or by applying an additional converter that expects or returns a boolean value.

Parameters:

value - Input value
targetType - (not used)
parameter - Optional additional converter: If provided, is called either before or after the invertion (depending on whether it expects or returns a boolean value). If not provided, the input value must be boolean and is inverted directly.

Returns:

Output value