BooleanToGrayscaleConverter

Name Value
Assembly Catel.MVVM
Namespace Catel.MVVM.Converters
Available on .NET Framework 4.5, .NET Framework 4.6, Portable Class Libraries, Xamarin - Android, Xamarin - iOS
public class BooleanToGrayscaleConverter : ValueConverterBase

Base types ValueConverterBase

Converts a boolean to a grayscale saturation value. If the input isfalse, this converter will return0, otherwise1.

Constructors

BooleanToGrayscaleConverter()

Initialzies the BooleanToGrayscaleConverter.

Properties

FalseResult

The value a input value of false will be converted to. The default value is0.

TrueResult

Methods


Have a question about Catel? Use StackOverflow with the Catel tag!


Discussion