Class VisibilityToBoolConverter
Converter to handle visibility based on boolean value.
Inheritance
System.Object
VisibilityToBoolConverter
Implements
Windows.UI.Xaml.Data.IValueConverter
Namespace: Syncfusion.UI.Xaml.Diagram.Utility
Assembly: Syncfusion.SfDiagram.UWP.dll
Syntax
public class VisibilityToBoolConverter : Object, IValueConverter
Constructors
VisibilityToBoolConverter()
Declaration
public VisibilityToBoolConverter()
Methods
Convert(Object, Type, Object, String)
To convert boolean values into visibility values.
Declaration
public object Convert(object value, Type targetType, object parameter, string culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | Gets boolean value. |
System.Type | targetType | Gets type of target. |
System.Object | parameter | Gets object parameter. |
System.String | culture | Gets culture value. |
Returns
Type | Description |
---|---|
System.Object | Returns visibility as visible, when boolean is true; otherwise returns collapsed. |
ConvertBack(Object, Type, Object, String)
To convert back visibility into boolean.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, string culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | Gets boolean value. |
System.Type | targetType | Gets type of target. |
System.Object | parameter | Gets object parameter. |
System.String | culture | Gets culture value. |
Returns
Type |
---|
System.Object |
Implements
Windows.UI.Xaml.Data.IValueConverter