Class BoolToVisibilityConverter
This class converts a boolean value into a Visibility enumeration.
Implements
Microsoft.UI.Xaml.Data.IValueConverter
Inherited Members
Namespace: Syncfusion.UI.Xaml.Core
Assembly: Syncfusion.Core.WinUI.dll
Syntax
public class BoolToVisibilityConverter : BoolToObjectConverter, IValueConverter
Constructors
BoolToVisibilityConverter()
Initializes a new instance of the BoolToVisibilityConverter class.
Declaration
public BoolToVisibilityConverter()
Examples
Refer to the following code example.
[XAML]
<StackPanel>
<StackPanel.Resources>
<core:BoolToVisibilityConverter x:Key="boolToVisibilityConverter"/>
</StackPanel.Resources>
<ediors:SfNumberBox x:Name="numberBox" Visibility="{Binding IsVisible, Converter={StaticResource boolToVisibilityConverter}}" Width="70" Height="30" />
</StackPanel>
Implements
Microsoft.UI.Xaml.Data.IValueConverter