NumericUpDownLib

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.

MIT License

Stars
82
Committers
5

Bot releases are hidden (Show)

NumericUpDownLib - NumericUpDownLib Version 3.3

Published by Dirkster99 almost 2 years 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 🙏

NumericUpDownLib - NumericUpDownLib Version 3.2

Published by Dirkster99 almost 2 years 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 🙏

NumericUpDownLib - NumericUpDownLib v3.1.0.0

Published by Dirkster99 about 2 years ago

This release has been authored by heartacker 🙏

NumericUpDownLib - NumericUpDownLib Version 3.0

Published by Dirkster99 almost 3 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 🙏

NumericUpDownLib - NumericUpDownLib Version 2.4.2.2

Published by Dirkster99 almost 4 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
NumericUpDownLib - NumericUpDownLib Version 2.4.2.1

Published by Dirkster99 about 4 years ago

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

NumericUpDownLib - BugFix for usage of multiple UpDown controls in one app

Published by Dirkster99 over 4 years ago

Fixing Issue #8

NumericUpDownLib - Increment/decrement with mouse drags in one direction or both

Published by Dirkster99 over 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)

NumericUpDownLib - Multitargeting NetCore 3 and Net 4/Net 4.5.2

Published by Dirkster99 about 5 years ago

NumericUpDownLib - Using a more symetrical up/down arrow default stlye (see issue #5).

Published by Dirkster99 about 5 years ago

NumericUpDownLib - Fixed critical issue about observing min/max values when changing value

Published by Dirkster99 over 5 years ago

NumericUpDownLib - Added feature support for mouse drag to increment/decrement value in Blend Style

Published by Dirkster99 over 5 years ago

NumericUpDownLib - More Up/Downs for Different Types of Data

Published by Dirkster99 about 6 years ago

Bug Fixes + New Features:

  • Implemented specific numeric up down control for data type: byte, decimal, double, float, integer, long, sbyte, short, ushort, uint, ulong
  • Percentages can be edit at [0-100] while backend viewmodels handles [0-1] values, see FactorToDoubleConverter and PercentageUpDownDemo
  • up down controls support increment and decrement via mouseover and mousewheel spin up/down
  • Up/Down button is disabled when min or max limit is already reached
  • SelectAll on GotFocus of TextBox
  • Added support to spin value up/down on mouseover + mousewheel spin
NumericUpDownLib - Fixed Layouting problems with themed radiobuttons

Published by Dirkster99 about 6 years ago

NumericUpDownLib - v 1.0.3 StepSize Feature

Published by Dirkster99 over 6 years ago

Added StepSize dependency property in control and demo code.

NumericUpDownLib - Editable TextBox Portion

Published by Dirkster99 almost 7 years ago

The numeric up down textbox control portion can now also be edit directly via keyboard.

NumericUpDownLib - Minor changes in text alignment

Published by Dirkster99 about 7 years ago

NumericUpDownLib - Initial Version

Published by Dirkster99 about 7 years ago