Class VisibilityToBoolConverter
Converter to handle visibility based on boolean value.
Inheritance
System.Object
VisibilityToBoolConverter
Implements
System.Windows.Data.IValueConverter
Namespace: Syncfusion.UI.Xaml.Diagram.Utility
Assembly: Syncfusion.SfDiagram.WPF.dll
Syntax
public class VisibilityToBoolConverter : Object, IValueConverter
Constructors
VisibilityToBoolConverter()
Declaration
public VisibilityToBoolConverter()
Methods
Convert(Object, Type, Object, CultureInfo)
To convert boolean values into visibility values.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo 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.Globalization.CultureInfo | culture | Gets culture value. |
Returns
Type | Description |
---|---|
System.Object | Returns visibility as visible, when boolean is true; otherwise returns collapsed. |
ConvertBack(Object, Type, Object, CultureInfo)
To convert back visibility into boolean.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo 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.Globalization.CultureInfo | culture | Gets culture value. |
Returns
Type |
---|
System.Object |
Implements
System.Windows.Data.IValueConverter