In This Article

FloatingPointIeee754NumberPartEditBoxBase<T> Class

Represents the abstract base class for a part-based edit box for floating point IEEE 754 numeric values.

public abstract class FloatingPointIeee754NumberPartEditBoxBase<T> : FloatingPointNumberPartEditBoxBase<T> where T : struct, IFloatingPointIeee754<T>, IMinMaxValue<T>
Type Parameters:
T -

The numeric type to be edited.

Inheritance:
object Visual UIElement FrameworkElement Control PartEditBoxBase<T?> NumberPartEditBoxBase<T> FloatingPointNumberPartEditBoxBase<T> object
Derived:
DoubleEditBox SingleEditBox

Constructors

FloatingPointIeee754NumberPartEditBoxBase()

Initializes an instance of the class.

protected FloatingPointIeee754NumberPartEditBoxBase()

Properties

IsNaNAllowed

Indicates whether NaN is accepted as a value.

public bool IsNaNAllowed { get; set; }

Property Value

bool:

true if NaN is accepted as a value; otherwise, false. The default value is false.

IsNegativeInfinityAllowed

Indicates whether NegativeInfinity is accepted as a value.

public bool IsNegativeInfinityAllowed { get; set; }

Property Value

bool:

true if NegativeInfinity is accepted as a value; otherwise, false. The default value is false.

IsPositiveInfinityAllowed

Indicates whether PositiveInfinity is accepted as a value.

public bool IsPositiveInfinityAllowed { get; set; }

Property Value

bool:

true if PositiveInfinity is accepted as a value; otherwise, false. The default value is false.

Methods

IsValidValue(T?)

Tests whether the specified value is valid.

protected override bool IsValidValue(T? value)
Parameter Type Description
value T?

The value to examine.

Returns

bool:

true if the value is valid; otherwise, false.

ProcessTextInput(string)

Processes typed text.

protected override bool ProcessTextInput(string text)
Parameter Type Description
text string

The typed text.

Returns

bool:

true if the typed text was handled and should not be allowed to be entered; otherwise, false.

Fields

IsNaNAllowedProperty

Defines the IsNaNAllowed property.

public static readonly DependencyProperty IsNaNAllowedProperty

IsNegativeInfinityAllowedProperty

Defines the IsNegativeInfinityAllowed property.

public static readonly DependencyProperty IsNegativeInfinityAllowedProperty

IsPositiveInfinityAllowedProperty

Defines the IsPositiveInfinityAllowed property.

public static readonly DependencyProperty IsPositiveInfinityAllowedProperty

Inherited Members

Extension Methods