Skip to content

NumberBox class

Attributes: [ToolboxItem(true)] [ToolboxBitmap]

Defined in

Namespace: CrissCross.WPF.UI.Controls Assembly: CrissCross.WPF.UI.dll Full name: CrissCross.WPF.UI.Controls.NumberBox Modifiers: public

Summary

        Represents a control that can be used to display and edit numbers.
        

Applies to

net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481

Class hierarchy
classDiagram
class NumberBox
class TextBox
TextBox <|-- NumberBox

Inherits from: TextBox

Constructors

NameSummary
.ctor

Properties

NameSummary
ValueGets or sets the numeric value of a [NumberBox](#
MaxDecimalPlacesGets or sets the number of decimal places to be rounded when converting from Text to Value.
SmallChangeGets or sets the value that is added to or subtracted from [Value](# when a small change is made, such as with an arrow key or scrolling.
LargeChangeGets or sets the value that is added to or subtracted from [Value](# when a large change is made, such as with the PageUP and PageDown keys.
MaximumGets or sets the numerical maximum for [Value](#
MinimumGets or sets the numerical minimum for [Value](#
AcceptsExpressionGets or sets a value indicating whether gets or sets whether the control will accept and evaluate a basic formulaic expression entered as input.
NumberFormatterGets or sets the number formatter.
SpinButtonPlacementModeGets or sets a value that indicates the placement of buttons used to increment or decrement the [Value](# property.
ValidationModeGets or sets the input validation behavior to invoke when invalid input is entered.

Fields

NameSummary
static ValuePropertyProperty for [Value](#
static MaxDecimalPlacesPropertyProperty for [MaxDecimalPlaces](#
static SmallChangePropertyProperty for [SmallChange](#
static LargeChangePropertyProperty for [LargeChange](#
static MaximumPropertyProperty for [Maximum](#
static MinimumPropertyProperty for [Minimum](#
static AcceptsExpressionPropertyProperty for [AcceptsExpression](#
static SpinButtonPlacementModePropertyProperty for [SpinButtonPlacementMode](#
static ValidationModePropertyProperty for [ValidationMode](#
static NumberFormatterPropertyProperty for [NumberFormatter](#
static ValueChangedEventRouted event for [ValueChanged](#

Methods

NameSummary
OnKeyUp
OnTemplateButtonClickTriggered by clicking a button in the control template.
OnLostFocus
OnTemplateChanged
OnValueChangedIs called when [Value](# in this [NumberBox](# changes.
OnClipboardPasteIs called when something is pasted in this [NumberBox](#

Events

NameSummary
ValueChangedOccurs after the user triggers evaluation of new input by pressing the Enter key, clicking a spin button, or by changing focus.
Inherited members