MVVMbasics Logo

mobilemotion.eu Logo


Back to Class Reference home page


MVVMbasics.Converters
Class NullToVisibilityConverter

Windows.UI.Xaml.Data.IValueConverter | System.Windows.Data.IValueConverter
  implemented by MVVMbasics.Converters.NullToVisibilityConverter
 

 
public class NullToVisibilityConverter : Windows.UI.Xaml.Data.IValueConverter | System.Windows.Data.IValueConverter

Converter class that converts values to the Visibility.Collapsed value if they are NULL, and to Visibility.Visible otherwise.


Method Summary
object  Convert(object value, Type targetType, object parameter, ...)
Converts values to the Visibility.Collapsed value if they are NULL, and to Visibility.Visible otherwise.
 
Method Detail

Convert

public object Convert(object value, Type targetType, object parameter, ...)

Converts values to the Visibility.Collapsed value if they are NULL, and to Visibility.Visible otherwise.

Parameters:

value - Input value
targetType - (not used)
parameter - (not used)

Returns:

Visibility.Collapsed if the input value is NULL, Visibility.Visible otherwise