Silverlight NumericUpDown
This free NumericUpDown control allows users to select integer values using up and down buttons.
You need to login to Download the NumericUpDown example, If you do not have a login you can register for free!
How to Use the NumericUpDown Control
To use the NumericUpDown on your Silverlight page:
<UserControl x:Class="NumericUpDown.Page"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:liquid="clr-namespace:Liquid;assembly=Liquid"
Width="400" Height="300">
<Grid x:Name="LayoutRoot" Background="White">
<StackPanel Orientation="Vertical">
<liquid:NumericUpDown Width="60" Margin="0 2 0 2" Min="0" Max="500" />
<liquid:NumericUpDown Width="60" Margin="0 2 0 2" Min="0" Max="10" />
<liquid:NumericUpDown Width="60" Margin="0 2 0 2" Min="0" Max="5000" Step="50" />
</StackPanel>
</Grid>
</UserControl>
The NumericUpDown can be configured using the Minimum and Maximum properties to control the range of values allowed.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
namespace NumericUpDown
{
public partial class Page : UserControl
{
public Page()
{
InitializeComponent();
}
}
}
Example Silverlight NumericUpDown Control:
