C# Class Windows.Mvvm.UI.Controls.BooleanToVisibilityConverter

Convertes boolean values into visibility values and vice versa.
Inheritance: IValueConverter
ファイルを表示 Open project: lecode-official/mvvm-framework

Public Methods

Method Description
Convert ( object value, Type targetType, object parameter, string language ) : object

Convertes the boolean value parameter to a visibility value. True converts to visible and false converts to collapsed.

ConvertBack ( object value, Type targetType, object parameter, string language ) : object

Convertes the visibility value parameter to a boolean value. Visible converts to true and collapsed converts to false.

Method Details

Convert() public method

Convertes the boolean value parameter to a visibility value. True converts to visible and false converts to collapsed.
public Convert ( object value, Type targetType, object parameter, string language ) : object
value object The boolean value that is to be converted.
targetType System.Type The type to which the value is to be converted. In this case it is always .
parameter object A parameter for the conversion. Not used in this converter, so it should always be null.
language string The name of the language, so that parsing can be adjusted to cultural conventions.
return object

ConvertBack() public method

Convertes the visibility value parameter to a boolean value. Visible converts to true and collapsed converts to false.
public ConvertBack ( object value, Type targetType, object parameter, string language ) : object
value object The visibility value that is to be converted.
targetType System.Type The type to which the value is to be converted. In this case it is always .
parameter object A parameter for the conversion. Not used in this converter, so it should always be null.
language string The name of the language, so that parsing can be adjusted to cultural conventions.
return object