In This Article

SingleEditBox Class

Represents a Single edit box.

public class SingleEditBox : FloatingPointIeee754NumberPartEditBoxBase<float>
Inheritance:
object Visual UIElement FrameworkElement Control PartEditBoxBase<float?> NumberPartEditBoxBase<float> FloatingPointNumberPartEditBoxBase<float> FloatingPointIeee754NumberPartEditBoxBase<float> object

Constructors

SingleEditBox()

Initializes an instance of the class.

public SingleEditBox()

Properties

PickerKind

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

public SingleEditBoxPickerKind PickerKind { get; set; }

Property Value

SingleEditBoxPickerKind:

The default value is Calculator.

RoundingDecimalPlace

The rounding decimal place, which is a value between 0 and 6.

public int? RoundingDecimalPlace { get; set; }

Property Value

int?:

When null or negative, rounding will be disabled. The default value is 6.

Methods

TryConvertFromString(string?, bool, out float?)

Tries to convert the specified text to a value.

protected override bool TryConvertFromString(string? textToConvert, bool canCoerce, out float? 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 float?

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