C# Class 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}">.
Inheritance: IValueConverter
Afficher le fichier Open project: ProjPossibility/CSUN-MobileMapMagnifier

Méthodes publiques

Méthode Description
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.

Method Details

Convert() public méthode

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. ///
Résultat object

ConvertBack() public méthode

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
Résultat object