BooleanToVisibilityInvertedConverter ClassDW.WPFToolkit Documentation
Represents the converter that converts Boolean values to and from System.Windows.Visibility enumeration values like the BooleanToVisibilityConverter but in the opposite way.
Inheritance Hierarchy

SystemObject
  DW.WPFToolkit.ConvertersBooleanToVisibilityInvertedConverter

Namespace: DW.WPFToolkit.Converters
Assembly: DW.WPFToolkit (in DW.WPFToolkit.dll) Version: 5.6.0.0
Syntax

C#
public sealed class BooleanToVisibilityInvertedConverter : IValueConverter

The BooleanToVisibilityInvertedConverter type exposes the following members.

Constructors

  NameDescription
Public methodBooleanToVisibilityInvertedConverter
Initializes a new instance of the BooleanToVisibilityInvertedConverter class
Top
Methods

  NameDescription
Public methodConvert
Converts a Boolean value to a Visibility enumeration value.
Public methodConvertBack
Converts a Visibility enumeration value to a Boolean value.
Top
Examples

XAML
<StackPanel>
    <StackPanel.Resources>
        <Converters:BooleanToVisibilityInvertedConverter x:Key="BooleanToVisibilityInvertedConverter" />
    </StackPanel.Resources>

    <CheckBox Content="Hide" x:Name="HideCheckBox" />

    <Label Content="Text" Visibility="{Binding IsChecked, ElementName=HideCheckBox, Converter={StaticResource BooleanToVisibilityInvertedConverter}}" />

</StackPanel>
See Also

Reference