ClassNullToVisibilityConverter
Converts null values to Visibility.
Definition
Namespace:Telerik.Core
Assembly:Telerik.WinUI.Controls.dll
Syntax:
public class NullToVisibilityConverter : IValueConverter
Inheritance: objectNullToVisibilityConverter
Implements:
Constructors
NullToVisibilityConverter()
Declaration
public NullToVisibilityConverter()
Properties
NonNullValue
Declaration
public Visibility NonNullValue { get; set; }
Property Value
Visibility
NullValue
Declaration
public Visibility NullValue { get; set; }
Property Value
Visibility
Methods
Convert(object, Type, object, string)
Modifies the source data before passing it to the target for display in the UI.
Declaration
public object Convert(object value, Type targetType, object parameter, string language)
Parameters
value
The source data being passed to the target.
targetType
The Type of data expected by the target dependency property.
parameter
An optional parameter to be used in the converter logic.
language
The language of the conversion.
Returns
The value to be passed to the target dependency property.
ConvertBack(object, Type, object, string)
Modifies the target data before passing it to the source object. This method is called only in bindings.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, string language)
Parameters
value
The target data being passed to the source.
targetType
The Type of data expected by the source object.
parameter
An optional parameter to be used in the converter logic.
language
The language of the conversion.
Returns
The value to be passed to the source object.