Dirkster.NumericUpDownLib
2.1.0
See the version list below for details.
dotnet add package Dirkster.NumericUpDownLib --version 2.1.0
NuGet\Install-Package Dirkster.NumericUpDownLib -Version 2.1.0
<PackageReference Include="Dirkster.NumericUpDownLib" Version="2.1.0" />
paket add Dirkster.NumericUpDownLib --version 2.1.0
#r "nuget: Dirkster.NumericUpDownLib, 2.1.0"
// Install Dirkster.NumericUpDownLib as a Cake Addin #addin nuget:?package=Dirkster.NumericUpDownLib&version=2.1.0 // Install Dirkster.NumericUpDownLib as a Cake Tool #tool nuget:?package=Dirkster.NumericUpDownLib&version=2.1.0
Overview
This library implements more than 10 different numeric up down WPF controls that can be used to edit values:
- with a textbox or
- up/down arrow (repeat) buttons
- up/down cursor keys
- spinning mousewheel up down on mouseover
Implements specific numeric up down control for each .Net data type:
- 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:
- Increments and Decrements can be configured to be 1 or any greater value than 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
- SelectAll on GotFocus of TextBox
- Spin value up/down on mouseover + mousewheel spin
- IsReadOnly property disables the textbox portion but leaves all other funtions for Increment/Decrement available
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.
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:
- MahApps.Metro,
- MLib, or
- MUI
to also theme standard elements, such as, button and textblock etc.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net40 is compatible. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
This package has no dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Dirkster.NumericUpDownLib:
Package | Downloads |
---|---|
Dirkster.ColorPickerLib
Provides a .Net implementation of a WPF color picker control supporting HSV and RGB. |
GitHub repositories (3)
Showing the top 3 popular GitHub repositories that depend on Dirkster.NumericUpDownLib:
Repository | Stars |
---|---|
Dirkster99/AvalonDock
Our own development branch of the well known WPF document docking library
|
|
DaxStudio/DaxStudio
DAX Studio is a tool to write, execute, and analyze DAX queries in Power BI Desktop, Power Pivot for Excel, and Analysis Services Tabular.
|
|
Dirkster99/Edi
Edi - The open source text editor IDE based on AvalonDock and AvalonEdit
|
Version | Downloads | Last updated |
---|---|---|
3.4.0 | 13,310 | 3/24/2023 |
3.3.1 | 2,299 | 12/20/2022 |
3.3.0 | 826 | 11/22/2022 |
3.2.0 | 946 | 10/20/2022 |
3.1.0 | 1,970 | 7/20/2022 |
3.0.0 | 3,881 | 11/6/2021 |
2.4.2.2 | 4,113 | 12/14/2020 |
2.4.2.1 | 3,259 | 9/2/2020 |
2.4.2 | 40,326 | 5/23/2020 |
2.4.1 | 639 | 5/3/2020 |
2.4.0 | 117,167 | 9/3/2019 |
2.3.1 | 1,333 | 7/28/2019 |
2.3.0 | 1,534 | 3/5/2019 |
2.2.2 | 821 | 2/21/2019 |
2.1.1 | 1,449 | 8/27/2018 |
2.1.0 | 1,624 | 8/26/2018 |
1.1.0 | 1,642 | 8/17/2018 |
1.0.3 | 959 | 6/28/2018 |
1.0.2 | 1,535 | 1/3/2018 |
1.0.1 | 1,303 | 8/15/2017 |
1.0.0 | 1,010 | 8/2/2017 |
Added several data type specific numeric up/down controls along with mousewheel support and other small improvements.