/default.aspx
Silverlight .NET CMS and Controls
Home
/controls.aspx
Silverlight Controls
Controls
NumericUpDown

Silverlight NumericUpDown

This Silverlight only NumericUpDown is easy to implement on your Silverlight driven website and is also customizable to provide a visual feel suitable for any site design.

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">
          <liquid:NumericUpDown Min="0" Max="500" />
    </Grid>
</UserControl>

 

The NumericUpDown can be configured using the Min and Max 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:

Silverlight NumericUpDown Control

Your Comments and Questions Answered

 You are not logged in. You need to login to post new messages, if you do not have a login you can register for free!

dan Jul, 01 2008 - 15:49

Hi,

Thanks for the suggestion, it is something that we will look at adding.

 

duff_39@hormail.com Jul, 01 2008 - 10:44

It would be very good that supports fractions and not only integers,
I'd like this control

 
This page is 17.71KB and was generated by the SilverPages CMS in 0.062 seconds. Total impressions: 244.