NullToBooleanConverter ClassDW.WPFToolkit Documentation
Represents the converter that converts the state if the parameter is null to a boolean value depending on the parameter.
Inheritance Hierarchy

SystemObject
  DW.WPFToolkit.ConvertersNullToBooleanConverter

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

C#
public sealed class NullToBooleanConverter : IValueConverter

The NullToBooleanConverter type exposes the following members.

Constructors

  NameDescription
Public methodNullToBooleanConverter
Initializes a new instance of the NullToBooleanConverter class
Top
Methods

  NameDescription
Public methodConvert
Converts the null state of an object to a boolean representation depending on the parameter.
Public methodConvertBack
Not implemented.
Top
Examples

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

    <Label Content="Element Is There" IsEnabled="{Binding Element, Converter={StaticResource NullToBooleanConverter}, ConverterParameter={x:Static Converters:NullToBooleanDirection.NullIsFalse}}" />

</StackPanel>
See Also

Reference