Implements numeric up down WPF controls to edit/display values (byte, integer, short, ushort etc.) with a textbox and optional up/down arrow (repeat) buttons. Value editing is possible by dragging the mouse vertically/horizontally, clicking up/down buttons, using up/down or left right cursor keys, spinning mousewheel on mouseover, or editing the textbox.
https://github.com/Dirkster99/NumericUpDownLib/pull/53 Fixes "FormatString not working with custom texts", "Control not scaling correctly with HorizontalAlignment set to 'Stretch'"
Fix #1: FormatString not working with custom texts
Fix #2: Control not scaling correctly with HorizontalAlignment set to "Stretch"
FormatException was fixed in Demo tool
Regarding to Microsoft documentation format string "D" is only supported by integral types (sbyte , byte , short , ushort , int , uint , long , ulong , and char) (see https://learn.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings) So a different Format string must be provided here in demo tool.
This release has been authored by Jürgen Holzer :pray:
WaterMark support Use the Watermark binding to display a default string (when the user deletes all characters in the textbox portion) to hint at the expected input format.
add support command binding Use the new Command binding to process the event when the user clicks on the Up/Dowm button of the UpDown Control.
This release has been authored by heartacker and Ryan Weldin :pray:
This release has been authored by heartacker :pray:
addr support update value when lostfocus,Fixes #36 #38
Please use the IsUpdateValueWhenLostFocus
property.
support align the value to left/center/right #41 Please use the HorizontalContentAlignment property.
add support to force trigger the ValueChanged event with ctrl+enter #39 Please use Control+Enter to trigger a value changed event without having to actually change a value. This shortcut cannot be configured out.
support disable editingTip Fixes #37 #43 Please use the IsEnableValidatingIndicator property.
fix: the cursor will focus to the PART_Measuring_Element by mistake #44
Display and Edit of Hex values
Text portion editing can be:
The Edit TextBox displays during editing a Red or Green indicator (in upper left corner) depending on whether current text is:
Dependency Features Added:
Improved Style/Template
Thanx for contributing go to heartacker :pray:
PR #10 Do not clear focus when the control change its visibility and its not focused.
Fixing Issue #8
Implemented Issue #7 to allow users a configuration of whether only vertical or only horizontal mouse moves (or both) should be used to incrment/decrement a value in small/large steps.
Fixed Issue #4 The Minimum, Maximum, and Value properties can now be set in any order (to improve support for binding) and should be applied by the control as long as:
(implimented NUnit tests to prove this point)