Back to Class Reference home page
Windows.UI.Xaml.Data.IValueConverter | System.Windows.Data.IValueConverter
MVVMbasics.Converters.BooleanToVisibilityConverter
public class BooleanToVisibilityConverter : Windows.UI.Xaml.Data.IValueConverter | System.Windows.Data.IValueConverter
Converter class that converts boolean values to Visibility values and vice versa.
Method Summary | |
---|---|
object |
Convert(object value, Type targetType, object parameter, ...)
Converts a boolean value to a Visibility value. |
object |
ConvertBack(object value, Type targetType, object parameter, ...)
Converts a Visibility value to a boolean value. |
Method Detail |
---|
public object Convert(object value, Type targetType, object parameter, ...)
Converts a boolean value to a Visibility value.
value
- Boolean input value
targetType
- (not used)
parameter
- (not used)
Visibility.Visible if the input value is TRUE, Visibility.Collapsed otherwise
public object ConvertBack(object value, Type targetType, object parameter, .)
Converts a Visibility value to a boolean value.
value
- Visibility value
targetType
- (not used)
parameter
- (not used)
TRUE if the input value equals Visibility.Visible, FALSE otherwise