Edit

Share via


DoubleToObjectConverter Class

Definition

This class converts a double value into an other object. Can be used to convert doubles to visibility, a couple of colors, couple of images, etc. If GreaterThan and LessThan are both set, the logic looks for a value between the two values. Otherwise the logic looks for the value to be GreaterThan or LessThan the specified value. The ConverterParameter can be used to invert the logic.

public class DoubleToObjectConverter : Microsoft.UI.Xaml.DependencyObject, Microsoft.UI.Xaml.Data.IValueConverter
type DoubleToObjectConverter = class
    inherit DependencyObject
    interface IValueConverter
Public Class DoubleToObjectConverter
Inherits DependencyObject
Implements IValueConverter
Inheritance
Microsoft.UI.Xaml.DependencyObject
DoubleToObjectConverter
Derived
Implements
Microsoft.UI.Xaml.Data.IValueConverter

Constructors

DoubleToObjectConverter()

Fields

FalseValueProperty

Identifies the FalseValue property.

GreaterThanProperty

Identifies the GreaterThan property.

LessThanProperty

Identifies the LessThan property.

NullValueProperty

Identifies the NullValue property.

TrueValueProperty

Identifies the TrueValue property.

Properties

FalseValue

Gets or sets the value to be returned when the expression is false

GreaterThan

Gets or sets the value to check if the value is GreaterThan this value.

LessThan

Gets or sets the value to check if the value is LessThan this value.

NullValue

Gets or sets the value to be returned when the value passed is null

TrueValue

Gets or sets the value to be returned when the expression is true

Methods

Convert(Object, Type, Object, String)

Convert a boolean value to an other object.

ConvertBack(Object, Type, Object, String)

Convert back the value to a boolean

Applies to