Class NullToBooleanConverter
Converts a null/non-null value to a boolean value.
Implements
Inherited Members
Namespace: Phoenix.Aruba.Converters
Assembly: Phoenix.Plugin.Aruba.dll
Syntax
public class NullToBooleanConverter : IValueConverter
Properties
View SourceNullIsTrue
Gets or sets a value indicating whether a null value returns a true result.
Declaration
public bool NullIsTrue { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
View SourceConvert(object, Type, object, CultureInfo)
Converts from one value to another.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
object | value | The value to convert. |
Type | targetType | The type this method should return. |
object | parameter | An optional parameter. |
CultureInfo | culture | The culture to use while converting the value. |
Returns
Type | Description |
---|---|
object | The converted value. |
ConvertBack(object, Type, object, CultureInfo)
Converts back, from one value to another.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
object | value | The value to convert back from. |
Type | targetType | The type this method should return. |
object | parameter | An optional parameter. |
CultureInfo | culture | The culture to use while converting the value. |
Returns
Type | Description |
---|---|
object | The converted back value. |