Dirkster.NumericUpDownLibEx 3.4.0.1

dotnet add package Dirkster.NumericUpDownLibEx --version 3.4.0.1
NuGet\Install-Package Dirkster.NumericUpDownLibEx -Version 3.4.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Dirkster.NumericUpDownLibEx" Version="3.4.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Dirkster.NumericUpDownLibEx --version 3.4.0.1
#r "nuget: Dirkster.NumericUpDownLibEx, 3.4.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Dirkster.NumericUpDownLibEx as a Cake Addin
#addin nuget:?package=Dirkster.NumericUpDownLibEx&version=3.4.0.1

// Install Dirkster.NumericUpDownLibEx as a Cake Tool
#tool nuget:?package=Dirkster.NumericUpDownLibEx&version=3.4.0.1

Build status Release NuGet

Net4 NetCore3

Overview

This is fork

The changed code in: https://github.com/heartacker/NumericUpDownLibEx

Version 3.4.0.1

Fixes and Features Added in Version 3.4

This release has been authored by Jรผrgen Holzer ๐Ÿ™

Fixes and Features Added in Version 3.3.1

This release has been authored by heartacker ๐Ÿ™

Fixes and Features Added in Version 3.3

Bug Fixes

This release has been authored by Jรผrgen Holzer ๐Ÿ™

Fixes and Features Added in Version 3.3

Bug Fixes

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 ๐Ÿ™

Features Added in Version 3.1

This release has been authored by heartacker ๐Ÿ™

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 ๐Ÿ™

More Features

This library implements numeric up down WPF controls to edit a value:

  • by dragging the mouse vertically/horizontally (see recording below) or
  • by clicking up/down arrow (repeat) buttons or
  • up/down or left right cursor keys or
  • spinning mousewheel up down on mouseover or
  • editing a textbox

Each control implementation is specific for a certain .Net data type:

Data Type Control
byte ByteUpDown control
decimal DecimalUpDown control
double DoubleUpDown control
float FloatUpDown control
integer IntegerUpDown control
long LongUpDown control
sbyte SbyteUpDown control
short ShortUpDown control
ushort UshortUpDown control
uint UintUpDown control
ulong UlongUpDown control

Percentages can be edit at [0-100] while backend viewmodels handles [0-1] values, see FactorToDoubleConverter and PercentageUpDownDemo in demo clients at project site.

Controls are fully themeable. Project site contains demos for:

  • Dark/Light theme and
  • Generics theme test clients.

More Features:

  • Small Increments and Decrements can be configured to be 1 or any greater value than 1.
  • Large Small Increments and Decrements can be configured to be 10 or any other value greater 1.
  • The width of the control can be configured to be fixed (textbox will scroll inside when text is too large)
  • Up/Down button is disabled when min or max limit is already reached
  • Up/Down button can be configured to be invisible
  • Mouse drag mode for editing value can be enabled/disabled
  • SelectAll on GotFocus of TextBox
  • IsReadOnly property disables the textbox portion but leaves all other funtions for Increment/Decrement available

LargeStepSize and StepSize

There are mouse and keyboard input methods that support 2 different configurable increment/decrement values.

Mouse Drag Mode

The user can hover the mouse over the textbox portion of the control and:

  • left click/drag vertically or
  • left click/drag horizontally

to change the current value with the size configured in StepSize or LargeStepSize dependency property.

Mouse Wheel

The user can hover the mouse over the textbox portion and spin the mouse wheel with:

  • no modifier key pressed or
  • a modifier key pressed

to change the current value with the size configured in StepSize or LargeStepSize dependency property.

The modifier key for changing the value with LargeStepSize can be configured in the MouseWheelAccelaratorKey dependency property.

Cursor Keys

The user can click into the textbox portion of the control and:

  • press cursor left or right or
  • press cursor up and down

to change the current value with the size configured in StepSize or LargeStepSize dependency property.

Demo Applications

There is a demo application that shows the usage of the control (Light/Black themes enabled) and documents the features, such as, the ability to configure a minimum and maximum value that can be used to keep the resulting value within a given bound.

screenshot screenshot screenshot screenshot

Theming

Load Light or Dark brush resources in you resource dictionary to take advantage of existing definitions.

    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="/NumericUpDownLib;component/Themes/DarkBrushs.xaml" />
    </ResourceDictionary.MergedDictionaries>
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="/NumericUpDownLib;component/Themes/LightBrushs.xaml" />
    </ResourceDictionary.MergedDictionaries>

These definitions do not theme all controls used within this library. You should use a standard theming library, such as:

to also theme standard elements, such as, button and textblock etc.

Visit the project's Wiki for more details.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 is compatible.  netcoreapp3.1 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.4.0.1 583 7/9/2023
3.4.0 547 7/7/2023

Adding features and fixes please refer to release notes.