In This Article

Int16EditBox Class

Represents an Int16 edit box.

public class Int16EditBox : NumberPartEditBoxBase<short>
Inheritance:
object Visual UIElement FrameworkElement Control PartEditBoxBase<short?> NumberPartEditBoxBase<short> object

Constructors

Int16EditBox()

Initializes an instance of the class.

public Int16EditBox()

Properties

PickerKind

An Int16EditBoxPickerKind indicating the pre-defined Style to apply to the picker used within the popup.

public Int16EditBoxPickerKind PickerKind { get; set; }

Property Value

Int16EditBoxPickerKind:

The default value is Calculator.

Methods

TryConvertFromString(string?, bool, out short?)

Tries to convert the specified text to a value.

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

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