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¶
| Name | Summary |
|---|---|
| .ctor |
Properties¶
| Name | Summary |
|---|---|
| Value | Gets or sets the numeric value of a [NumberBox](# |
| MaxDecimalPlaces | Gets or sets the number of decimal places to be rounded when converting from Text to Value. |
| SmallChange | Gets 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. |
| LargeChange | Gets 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. |
| Maximum | Gets or sets the numerical maximum for [Value](# |
| Minimum | Gets or sets the numerical minimum for [Value](# |
| AcceptsExpression | Gets or sets a value indicating whether gets or sets whether the control will accept and evaluate a basic formulaic expression entered as input. |
| NumberFormatter | Gets or sets the number formatter. |
| SpinButtonPlacementMode | Gets or sets a value that indicates the placement of buttons used to increment or decrement the [Value](# property. |
| ValidationMode | Gets or sets the input validation behavior to invoke when invalid input is entered. |
Fields¶
| Name | Summary |
|---|---|
| static ValueProperty | Property for [Value](# |
| static MaxDecimalPlacesProperty | Property for [MaxDecimalPlaces](# |
| static SmallChangeProperty | Property for [SmallChange](# |
| static LargeChangeProperty | Property for [LargeChange](# |
| static MaximumProperty | Property for [Maximum](# |
| static MinimumProperty | Property for [Minimum](# |
| static AcceptsExpressionProperty | Property for [AcceptsExpression](# |
| static SpinButtonPlacementModeProperty | Property for [SpinButtonPlacementMode](# |
| static ValidationModeProperty | Property for [ValidationMode](# |
| static NumberFormatterProperty | Property for [NumberFormatter](# |
| static ValueChangedEvent | Routed event for [ValueChanged](# |
Methods¶
| Name | Summary |
|---|---|
| OnKeyUp | |
| OnTemplateButtonClick | Triggered by clicking a button in the control template. |
| OnLostFocus | |
| OnTemplateChanged | |
| OnValueChanged | Is called when [Value](# in this [NumberBox](# changes. |
| OnClipboardPaste | Is called when something is pasted in this [NumberBox](# |
Events¶
| Name | Summary |
|---|---|
| ValueChanged | Occurs after the user triggers evaluation of new input by pressing the Enter key, clicking a spin button, or by changing focus. |
Inherited members
CrissCross.WPF.UI.Controls.TextBox.IconPropertyCrissCross.WPF.UI.Controls.TextBox.IconPlacementPropertyCrissCross.WPF.UI.Controls.TextBox.PlaceholderTextPropertyCrissCross.WPF.UI.Controls.TextBox.PlaceholderEnabledPropertyCrissCross.WPF.UI.Controls.TextBox.CurrentPlaceholderEnabledPropertyCrissCross.WPF.UI.Controls.TextBox.ClearButtonEnabledPropertyCrissCross.WPF.UI.Controls.TextBox.ShowClearButtonPropertyCrissCross.WPF.UI.Controls.TextBox.IsTextSelectionEnabledPropertyCrissCross.WPF.UI.Controls.TextBox.TemplateButtonCommandPropertyCrissCross.WPF.UI.Controls.TextBox.#ctorCrissCross.WPF.UI.Controls.TextBox.OnTextChanged(System.Windows.Controls.TextChangedEventArgs)CrissCross.WPF.UI.Controls.TextBox.SetPlaceholderTextVisibilityCrissCross.WPF.UI.Controls.TextBox.OnGotFocus(System.Windows.RoutedEventArgs)CrissCross.WPF.UI.Controls.TextBox.OnLostFocus(System.Windows.RoutedEventArgs)CrissCross.WPF.UI.Controls.TextBox.RevealClearButtonCrissCross.WPF.UI.Controls.TextBox.HideClearButtonCrissCross.WPF.UI.Controls.TextBox.OnClearButtonClickCrissCross.WPF.UI.Controls.TextBox.OnTemplateButtonClick(System.String)CrissCross.WPF.UI.Controls.TextBox.OnPlaceholderEnabledChangedCrissCross.WPF.UI.Controls.TextBox.IconCrissCross.WPF.UI.Controls.TextBox.IconPlacementCrissCross.WPF.UI.Controls.TextBox.PlaceholderTextCrissCross.WPF.UI.Controls.TextBox.PlaceholderEnabledCrissCross.WPF.UI.Controls.TextBox.CurrentPlaceholderEnabledCrissCross.WPF.UI.Controls.TextBox.ClearButtonEnabledCrissCross.WPF.UI.Controls.TextBox.ShowClearButtonCrissCross.WPF.UI.Controls.TextBox.IsTextSelectionEnabledCrissCross.WPF.UI.Controls.TextBox.TemplateButtonCommandCrissCross.WPF.UI.Controls.TextBox.OnTemplateButtonClickCommandSystem.Object.Equals(System.Object)System.Object.Equals(System.Object,System.Object)System.Object.GetHashCodeSystem.Object.GetTypeSystem.Object.MemberwiseCloneSystem.Object.ReferenceEquals(System.Object,System.Object)System.Object.ToString