C# 클래스 GPS.Converters.StringMatchToVisibleConverter

Converter that transforms a string match to a Visibility. This is particularly useful when we need to match the value of an enum in a converter. Example: Visibility="{Binding SomeEnumField, Converter={StaticResource StringMatchToVisibleConverter}, ConverterParameter=MatchingValueCorrespondingToVisible}">.
상속: IValueConverter
파일 보기 프로젝트 열기: ProjPossibility/CSUN-MobileMapMagnifier

공개 메소드들

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

Converts the source data (value) to Visibility before passing it to the target of a data binding for display in the UI.

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

The ConvertBack is not implemented for this converter. ConvertBack will throw NotImplementedException if invoked.

메소드 상세

Convert() 공개 메소드

Converts the source data (value) to Visibility before passing it to the target of a data binding for display in the UI.
public Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object /// The source data being passed to the target. ///
targetType System.Type /// The type of data expected by the target dependency property. ///
parameter object /// The string that is matched against value.ToString. /// This will be provided in the converter parameter in the data binding syntax. ///
culture System.Globalization.CultureInfo /// The culture of the conversion. Ignored by this converter. ///
리턴 object

ConvertBack() 공개 메소드

The ConvertBack is not implemented for this converter. ConvertBack will throw NotImplementedException if invoked.
public ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object
targetType System.Type
parameter object
culture System.Globalization.CultureInfo
리턴 object