NumericUpDownLib Versions Save

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.

v3.3.0.0

1 year ago

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

  • do not put format string into "format-string-like" curly brackets if if allready looks like a format string
  • Consolidate Format string handling in base class
  • adapt demo application

Fix #2: Control not scaling correctly with HorizontalAlignment set to "Stretch"

  • control´s grid columns were set to auto and Horizontal allignment was set to "Center". TextBlocks were set to "Left"-Alignment. This prevents control to scale correctly in "Stretch"-mode. Buttons must be right-allgined for correct scaling
  • extend demo app with GridSplitters, so that scaling can be validated

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:

v3.2.0.0

1 year ago

Fixes and Features Added in Version 3.2

Bug Fixes

Features Added

  • 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:

v3.1.0.0

1 year ago

This release has been authored by heartacker :pray:

v3.0.0.0

2 years ago

Features Added in Version 3.0

  • Display and Edit of Hex values

  • Text portion editing can be:

    • Cancelled with Escape key or can be
    • Okay'ed with Enter Key
  • The Edit TextBox displays during editing a Red or Green indicator (in upper left corner) depending on whether current text is:

    • a valid number (GREEN) or
    • not valid number (RED)
  • Dependency Features Added:

    • IsLargeStepEnabled
    • FormatString
    • NumberStyle
  • Improved Style/Template

Thanx for contributing go to heartacker :pray:

v2.4.2.2

3 years ago
  • Fixes Issue #15 edit by keyboard and hit 'Enter key' can't raise "ValueChanged" event
  • Also fixed ignoring cursor keys for increment/decrement when a modifier keys (shif, alt, ctrl) is pressed

v2.4.2.1

3 years ago

PR #10 Do not clear focus when the control change its visibility and its not focused.

V2.4.2

3 years ago

Fixing Issue #8

2.4.1

4 years ago
  • 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:

    • MinValue is smaller equal Value
    • Value is smaller equal MaxValue

    (implimented NUnit tests to prove this point)