InverseBooleanConverter ClassDW.WPFToolkit Documentation
Represents the converter that converts Boolean values to its opposite.
Inheritance Hierarchy

SystemObject
  DW.WPFToolkit.ConvertersInverseBooleanConverter

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

C#
public sealed class InverseBooleanConverter : IValueConverter

The InverseBooleanConverter type exposes the following members.

Constructors

  NameDescription
Public methodInverseBooleanConverter
Initializes a new instance of the InverseBooleanConverter class
Top
Methods

  NameDescription
Public methodConvert
Converts Boolean values to its opposite.
Public methodConvertBack
Converts Boolean values to its opposite.
Top
Examples

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

    <CheckBox Content="Disable" x:Name="DisableCheckBox" />

    <Label Content="Text" IsEnabled="{Binding IsChecked, ElementName=DisableCheckBox, Converter={StaticResource InverseBooleanConverter}}" />

</StackPanel>
See Also

Reference