New to Telerik UI for WPFStart a free 30-day trial

Represents enum to boolean converter.

Definition

Namespace:Telerik.Windows.Documents.Converters

Assembly:Telerik.Windows.Controls.FixedDocumentViewers.dll

Type Parameters:

TEnum

Syntax:

C#
public abstract class EnumToBooleanConverter<TEnum> : IValueConverter where TEnum : struct

Inheritance: objectEnumToBooleanConverter<TEnum>

Derived Classes: ScaleModeToBooleanConverterFixedDocumentViewerModeConverterScaleModeConverter

Implements: IValueConverter

Constructors

C#
protected EnumToBooleanConverter()

Methods

Modifies the source data before passing it to the target for display in the UI.

C#
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters:valueobject

The source data being passed to the target.

targetTypeType

The Type of data expected by the target dependency property.

parameterobject

An optional parameter to be used in the converter logic.

cultureCultureInfo

The culture of the conversion.

Returns:

object

The value to be passed to the target dependency property.

Modifies the target data before passing it to the source object. This method is called only in bindings.

C#
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters:valueobject

The target data being passed to the source.

targetTypeType

The Type of data expected by the source object.

parameterobject

An optional parameter to be used in the converter logic.

cultureCultureInfo

The culture of the conversion.

Returns:

object

The value to be passed to the source object.