Class VisibilityToBoolConverter
This class converts a Visibility enumeration to a boolean value.
Inheritance
System.Object
VisibilityToBoolConverter
Implements
Microsoft.UI.Xaml.Data.IValueConverter
Namespace: Syncfusion.UI.Xaml.Core
Assembly: Syncfusion.Core.WinUI.dll
Syntax
public class VisibilityToBoolConverter : Object, IValueConverter
Constructors
VisibilityToBoolConverter()
Declaration
public VisibilityToBoolConverter()
Methods
Convert(Object, Type, Object, String)
Convert a Microsoft.UI.Xaml.Visibility value to boolean.
Declaration
public object Convert(object value, Type targetType, object parameter, string language)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The Microsoft.UI.Xaml.Visibility value to convert. |
System.Type | targetType | The type of the target property, as a type reference. |
System.Object | parameter | Optional parameter. Not used. |
System.String | language | The language of the conversion. Not used |
Returns
Type | Description |
---|---|
System.Object | The value to be passed to the target dependency property. |
ConvertBack(Object, Type, Object, String)
Convert back a boolean value to Microsoft.UI.Xaml.Visibility.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, string language)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The Microsoft.UI.Xaml.Visibility value to convert back. |
System.Type | targetType | The type of the target property, as a type reference. |
System.Object | parameter | Optional parameter. Not used. |
System.String | language | The language of the conversion. Not used |
Returns
Type | Description |
---|---|
System.Object | The value to be passed to the target dependency property. |
Implements
Microsoft.UI.Xaml.Data.IValueConverter