WPFNumericInput 1.0.0

dotnet add package WPFNumericInput --version 1.0.0
                    
NuGet\Install-Package WPFNumericInput -Version 1.0.0
                    
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="WPFNumericInput" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="WPFNumericInput" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="WPFNumericInput" />
                    
Project file
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 WPFNumericInput --version 1.0.0
                    
#r "nuget: WPFNumericInput, 1.0.0"
                    
#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 WPFNumericInput@1.0.0
                    
#: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=WPFNumericInput&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=WPFNumericInput&version=1.0.0
                    
Install as a Cake Tool

WPFNumericInput

Ensures numeric only input in WPF textbox.

Sample:
<Window x:Class="WpfSampler.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WpfSampler"
        mc:Ignorable="d" ThemeMode="System"
        xmlns:numeric="clr-namespace:WPFNumericInput;assembly=WPFNumericInput"
        Title="MainWindow" Height="450" Width="800">
    <Grid>

        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="*" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <Label Content="Double" Grid.Row="0" Grid.Column="0" ></Label>
            <TextBox numeric:TextBoxExtension.TextType="Double" Grid.Row="0" Grid.Column="1"></TextBox>

            <Label Content="Int" Grid.Row="1" Grid.Column="0" ></Label>
             <TextBox numeric:TextBoxExtension.TextType="Int" Grid.Row="0" Grid.Column="1"></TextBox>
        </Grid>
    </Grid>
</Window>


or


<Window x:Class="WpfSampler.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WpfSampler"
        mc:Ignorable="d" ThemeMode="System"
        xmlns:numeric="clr-namespace:WPFNumericInput;assembly=WPFNumericInput"
        Title="MainWindow" Height="450" Width="800">
    <Grid>
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="*" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
               <Label Content="Double" Grid.Row="0" Grid.Column="0"></Label>
            <numeric:DoubleBox  Grid.Row="0" Grid.Column="1"></numeric:DoubleBox>  
            <Label Content="Int" Grid.Row="1" Grid.Column="0"></Label>
            <numeric:IntBox  Grid.Row="1" Grid.Column="1"></numeric:IntBox>  
      </Grid>
   </Grid>
Product Compatible and additional computed target framework versions.
.NET net10.0-windows7.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.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.0 121 4/22/2026