C# 클래스 System.Windows.Controls.InvertedBooleanToVisibilityConverter

Convertes boolean values into visibility values and vice versa. Unlike the standard boolean to visibility converter it inverts the boolean values, which means, that false converts to visible and true converts to collapsed.
상속: IValueConverter
파일 보기 프로젝트 열기: lecode-official/mvvm-framework

공개 메소드들

메소드 설명
Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object

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

ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object

Convertes the visibility value parameter to a boolean value. Collapsed converts to true and visible converts to false.

메소드 상세

Convert() 공개 메소드

Convertes the boolean value parameter to a visibility value. True converts to collapsed and false converts to visible.
public Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object The boolean value that is to be converted.
targetType 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.
culture System.Globalization.CultureInfo The culture information of the current culture, so that parsing can be adjusted to cultural conventions.
리턴 object

ConvertBack() 공개 메소드

Convertes the visibility value parameter to a boolean value. Collapsed converts to true and visible converts to false.
public ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object The visibility value that is to be converted.
targetType 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.
culture System.Globalization.CultureInfo The culture information of the current culture, so that parsing can be adjusted to cultural conventions.
리턴 object