EnumToCollapsingVisibilityConverter

Name Value
Assembly Catel.MVVM
Namespace Catel.MVVM.Converters
Available on .NET Framework 4.5, .NET Framework 4.6, Xamarin - Android, Xamarin - iOS
public class EnumToCollapsingVisibilityConverter : VisibilityConverterBase

Base types VisibilityConverterBase

Convert from an enum value to. The allowed values must be defined inside theConverterParameter property. If theConverterParameter starts with a!, the element will not be visible for the specified enum values.

Fields

Constructors

EnumToCollapsingVisibilityConverter()

Initializes a new instance of the EnumToCollapsingVisibilityConverter class.

Methods

IsVisible(object value, Type targetType, object parameter)

Determines what value this converter should return.

Parameters

Name Description
value The value produced by the binding source.
targetType The type of the binding target property.
parameter The converter parameter to use.

Returns

true if the specified value is visible; otherwise,false.


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


Discussion