Class VisibilityNegationConverter
Represents a converter that converts bool to reverse visibility.
Inheritance
System.Object
VisibilityNegationConverter
Implements
System.Windows.Data.IValueConverter
Namespace: Syncfusion.Windows.Shared
Assembly: Syncfusion.Shared.WPF.dll
Syntax
public class VisibilityNegationConverter : Object, IValueConverter
Remarks
Returns Visibility.Collapsed if value is True. Returns Visibility.Visible if value is False.
Constructors
VisibilityNegationConverter()
Declaration
public VisibilityNegationConverter()
Methods
Convert(Object, Type, Object, CultureInfo)
Converts bool to visibility.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | input value |
System.Type | targetType | target type |
System.Object | parameter | input parameter |
System.Globalization.CultureInfo | culture | input language |
Returns
Type | Description |
---|---|
System.Object | Returns Visibility.Collapsed if value is True. Returns Visibility.Visible if value is False. |
ConvertBack(Object, Type, Object, CultureInfo)
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | |
System.Type | targetType | |
System.Object | parameter | |
System.Globalization.CultureInfo | culture |
Returns
Type |
---|
System.Object |
Implements
System.Windows.Data.IValueConverter