Skip to main content

NumberBox

Description​

NumberBox is a WPF Control for numeric entry with optional spin buttons and bounds.

NumberBox in light mode NumberBox in dark mode

Example usage​

<fluence:NumberBox Header="Inline" Value="5" Minimum="0" />

Key properties​

PropertyDefaultPurpose
Value0Current numeric value.
Minimum, Maximumdouble.MinValue, double.MaxValueBounds for the value.
SmallChange, LargeChange1, 10Step sizes for adjustment.
SpinButtonPlacementModeCompactControls where spin buttons appear.
AcceptsExpressionfalseEnables arithmetic expression input.

State and behavior​

Spin buttons and text entry change Value within the configured bounds. Text that does not parse leaves Value unchanged, and clearing the field sets Value to NaN. When the control is disabled, its header uses the disabled text brush.

Events​

ValueChanged is raised when the value changes.

See text input focus and selection for the shared WPF editor behavior.

Reference​