In This Article

DecimalEditBox Class

Represents a Double edit box.

public class DecimalEditBox : FloatingPointNumberPartEditBoxBase<decimal>
Inheritance:
object Visual UIElement FrameworkElement Control PartEditBoxBase<decimal?> NumberPartEditBoxBase<decimal> FloatingPointNumberPartEditBoxBase<decimal> object

Constructors

DecimalEditBox()

Initializes an instance of the class.

public DecimalEditBox()

Properties

PickerKind

A DecimalEditBoxPickerKind indicating the pre-defined Style to apply to the picker used within the popup.

public DecimalEditBoxPickerKind PickerKind { get; set; }

Property Value

DecimalEditBoxPickerKind:

The default value is Calculator.

Methods

TryConvertFromString(string?, bool, out decimal?)

Tries to convert the specified text to a value.

protected override bool TryConvertFromString(string? textToConvert, bool canCoerce, out decimal? value)
Parameter Type Description
textToConvert string

The text.

canCoerce bool

Whether the returned value should be coerced to fall within the allowed value range.

value decimal?

Returns the value for the specified text.

Returns

bool:

true if the text was converted to a value successfully; otherwise, false.

Fields

PickerKindProperty

Defines the PickerKind property.

public static readonly DependencyProperty PickerKindProperty

Inherited Members

Extension Methods