Class NullToVisibityConverter
Converter to handle visibility based on null value of objects.
Inheritance
System.Object
NullToVisibityConverter
Implements
Windows.UI.Xaml.Data.IValueConverter
Namespace: Syncfusion.UI.Xaml.Diagram.Utility
Assembly: Syncfusion.SfDiagram.UWP.dll
Syntax
public class NullToVisibityConverter : Object, IValueConverter
Constructors
NullToVisibityConverter()
Declaration
public NullToVisibityConverter()
Methods
Convert(Object, Type, Object, String)
To convert given object values into visibility.
Declaration
public object Convert(object value, Type targetType, object parameter, string 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.String | 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, String)
To convert back visibility value as object.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, string 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.String | language | Gets culture info value. |
Returns
Type |
---|
System.Object |
Implements
Windows.UI.Xaml.Data.IValueConverter