Class NullToVisibityConverter
Converter to handle visibility based on null value of objects.
Inheritance
System.Object
NullToVisibityConverter
Implements
System.Windows.Data.IValueConverter
Namespace: Syncfusion.UI.Xaml.Diagram.Utility
Assembly: Syncfusion.SfDiagram.WPF.dll
Syntax
public class NullToVisibityConverter : Object, IValueConverter
Constructors
NullToVisibityConverter()
Declaration
public NullToVisibityConverter()
Methods
Convert(Object, Type, Object, CultureInfo)
To convert given object values into visibility.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo language)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | Gets object value. |
System.Type | targetType | Gets target type values. |
System.Object | parameter | Gets paramter object of given value. |
System.Globalization.CultureInfo | language | Gets the language. |
Returns
Type | Description |
---|---|
System.Object | Returns visibility as collapsed, when object does not have null value; Otherwise returns visible. |
ConvertBack(Object, Type, Object, CultureInfo)
To convert back visibility value as object.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo language)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | Gets Object value |
System.Type | targetType | Gets target type value. |
System.Object | parameter | Gets object parameter. |
System.Globalization.CultureInfo | language | Gets culture info value. |
Returns
Type |
---|
System.Object |
Implements
System.Windows.Data.IValueConverter