Class InverseBoolToVisibilityConverter
Converter to handle visibility as inversly based on boolean value.
Inheritance
System.Object
InverseBoolToVisibilityConverter
Implements
System.Windows.Data.IValueConverter
Namespace: Syncfusion.UI.Xaml.Diagram.Utility
Assembly: Syncfusion.SfDiagram.WPF.dll
Syntax
public class InverseBoolToVisibilityConverter : Object, IValueConverter
Constructors
InverseBoolToVisibilityConverter()
Declaration
public InverseBoolToVisibilityConverter()
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 false; 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