2013-05-24

 

The NumericUpDown is like the NumberBox with increasing and decreasing buttons beside. You can define the kind of numbers and how they will be increased or decreased.

 

alt

 

Usage

<UserControl x:Class="DW.WPFToolkit.Demo.NumericUpDownControl"
			 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
			 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			 xmlns:Toolkit="http://schemas.my-libraries.de/wpf/toolkit">
	<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">
		<TextBlock Text="Integer" Margin="5,2" />
		<Toolkit:NumericUpDown Minimum="0" Maximum="10" Step="1" NumberType="Integer" />
		<TextBlock Text="Double" Margin="5,2" />
		<Toolkit:NumericUpDown Minimum="0" Maximum="10" Step="0.1" NumberType="Double" />
	</StackPanel>
</UserControl>