C# Class ListsSample.ItemVisibilityConverter

This is a simple converter which returns a visibility based on an object. If the object is null,the visibility is collapsed, otherwise, the visibility is visible. This is used when binding to the selected item of a list box.
Inheritance: IValueConverter
Afficher le fichier Open project: rafek/SyncFx

Méthodes publiques

Méthode Description
Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object
ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object

Method Details

Convert() public méthode

public Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object
targetType System.Type
parameter object
culture System.Globalization.CultureInfo
Résultat object

ConvertBack() public méthode

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