Spyder.Controls.Spinner
1.0.1
dotnet add package Spyder.Controls.Spinner --version 1.0.1
NuGet\Install-Package Spyder.Controls.Spinner -Version 1.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="Spyder.Controls.Spinner" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Spyder.Controls.Spinner" Version="1.0.1" />
<PackageReference Include="Spyder.Controls.Spinner" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Spyder.Controls.Spinner --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Spyder.Controls.Spinner, 1.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.
#:package Spyder.Controls.Spinner@1.0.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Spyder.Controls.Spinner&version=1.0.1
#tool nuget:?package=Spyder.Controls.Spinner&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
WPF Custom Numeric & Integer Spinners
A custom numeric and integer spinner controls
Numeric Spinner
Properties
- Value decimal - The bindable decimal value.
- MaxValue decimal - The maximum value boundary the decimal value can reach.
- MinValue decimal - The minimum value boundary the decimal value can reach.
- DecimalPlaces int - The number of decimal places (default is 0)
- MaxDecimalPlaces int - The upper decimal places boundary
- MinDecimalPlaces int - The lower decimal places boundary
- HasThousandSeparator bool - A boolean indicating whether the control should have a thousand separator.
- CanAutoSelect bool - A boolean indicating whether the value in the control can be auto selected when clicked.
- MinorStep decimal - The minimum step to increase or decrease the value by when the increase or decrease commands are requested.
- MajorStep decimal - The major step to increase or decrease the value by when page up or page down keys are pressed.
- CanUndo bool - A boolean indicating whether the control can undo it's value.
Integer Spinner
Properties
- Value int - The bindable integer value.
- MaxValue int - The maximum value boundary the integer value can reach.
- MinValue int - The minimum value boundary the integer value can reach.
- HasThousandSeparator bool - A boolean indicating whether the control should have a thousand separator.
- CanAutoSelect bool - A boolean indicating whether the value in the control can be auto selected when clicked.
- MinorStep int - The minimum step to increase or decrease the value by when the increase or decrease commands are requested.
- MajorStep int - The major step to increase or decrease the value by when page up or page down keys are pressed.
- CanUndo bool - A boolean indicating whether the control can undo it's value.
Usage
Add the namespace xmlns:spinner="clr-namespace:Spyder.Controls.Spinner;assembly=Spyder.Controls.Spinner"
Use the control
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
<spinner:NumericSpinner
Background="Black"
BorderThickness="0"
CornerRadius="4"
FontSize="15"
Foreground="Red" />
<spinner:IntegerSpinner
Margin="2"
Padding="3"
Background="White"
BorderThickness="0"
CornerRadius="4"
FontSize="12"
Foreground="Violet" />
</StackPanel>
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0-windows7.0 is compatible. net7.0-windows was computed. net8.0-windows was computed. net9.0-windows was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0-windows7.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 |
---|---|---|
1.0.1 | 323 | 12/2/2022 |