Skip to content
Dirkster99 edited this page Feb 21, 2019 · 16 revisions

The control library in this project implements a number of .Net data type specific controls:

Each of these controls implements the properties below (where T is the data type listed above):

Data Type Name Description
bool IsReadOnly Determines whether the textbox portion of the control is editable (requires additional check of bounds) or not.
NumberStyles NumberStyle Gets/sets the allowed style of a number entered and displayed in the textbox.
bool IsMouseDragEnabled Gets/sets whether the mouse can be used to increment/decrement the displayed value be dragging the mouse over the control. https://github.com/Dirkster99/NumericUpDownLib/issues/2
ModifierKeys MouseWheelAccelaratorKey Gets/sets the accelerator key of type System.Windows.Input.ModifierKeys that can be pressed on the keyboard during mouse wheel scrolling over the control. Pressing the mousewheel accelerator key results in using NumericUpDownLib.Base.AbstractBaseUpDown`1.LargeStepSize as base of increment/decrement steps, while otherwise the NumericUpDownLib.Base.AbstractBaseUpDown`1.StepSize property is applied as base of increments/decrement steps.
bool SelectAllTextOnFocus Gets/sets a dependency property to determine whether all text in the textbox should be selected on textbox focus or not.
string FormatString Gets/sets a .Net FormatString that is applied to the textbox text portion of the up down control.
bool IsDisplayLengthFixed Gets/sets whether the textbox portion of the numeric up down control can go grow and shrink with its input or whether it should stay with a fixed width.
byte DisplayLength Gets/sets the number of characters to display in the textbox portion of the AbstractBaseUpDown control.
T LargeStepSize Implements an abstract place holder for a dependency property that should be implemented in a deriving class. The place holder is necessary here because the default value (usually greater than 1) cannot be formulated with {T}. Gets or sets a large step size (actual distance) of increment or decrement step. This value should be greater than 1 but at least 1.
T StepSize Implements an abstract place holder for a dependency property that should be implemented in a deriving class. The place holder is necessary here because the default value (usually 1 or greater 0) cannot be formulated with {T}. Gets or sets the step size (actual distance) of increment or decrement step. This value should at least be 1 or greater.
T MaxValue Get/set dependency property to define the maximum legal value.
T MinValue Get/set dependency property to define the minimum legal value.
bool IsIncDecButtonsVisible Gets/sets whether the Increment or Decrement button is currently visible or not.
T Value Gets or sets the value assigned to the control.
T StepSize Gets or sets the step size (actual distance) of increment or decrement step. This value should at least be 1 or greater.
T LargeStepSize Gets or sets the step size (actual distance) of increment or decrement step. This value should at least be 1 or greater.

Technical Details

Clone this wiki locally