Edit

Share via


BoolToVisibilityConverter Class

Definition

This class converts a boolean value into a Visibility enumeration.

public class BoolToVisibilityConverter : CommunityToolkit.WinUI.UI.Converters.BoolToObjectConverter
type BoolToVisibilityConverter = class
    inherit BoolToObjectConverter
Public Class BoolToVisibilityConverter
Inherits BoolToObjectConverter
Inheritance
Microsoft.UI.Xaml.DependencyObject
BoolToVisibilityConverter

Constructors

BoolToVisibilityConverter()

Initializes a new instance of the BoolToVisibilityConverter class.

Properties

FalseValue

Gets or sets the value to be returned when the boolean is false

(Inherited from BoolToObjectConverter)
TrueValue

Gets or sets the value to be returned when the boolean is true

(Inherited from BoolToObjectConverter)

Methods

Convert(Object, Type, Object, String)

Convert a boolean value to an other object.

(Inherited from BoolToObjectConverter)
ConvertBack(Object, Type, Object, String)

Convert back the value to a boolean

(Inherited from BoolToObjectConverter)

Applies to