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

SystemObject
  DW.WPFToolkit.ConvertersNullToVisibilityConverter

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

C#
public sealed class NullToVisibilityConverter : IValueConverter

The NullToVisibilityConverter type exposes the following members.

Constructors

  NameDescription
Public methodNullToVisibilityConverter
Initializes a new instance of the NullToVisibilityConverter class
Top
Methods

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

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

    <Label Content="Element Is There" Visibility="{Binding Element, Converter={StaticResource NullToVisibilityConverter}, ConverterParameter={x:Static Converters:NullToVisibilityDirection.NullIsCollapsed}}" />

</StackPanel>
See Also

Reference