Edit this page

Getting Started

This tutorial will walk you through the creation of a sample application that contains RadNumericUpDown.

Assembly References

In order to use RadNumericUpDown control in your projects you have to add references to the following assemblies:

  1. Telerik.Windows.Controls
  2. Telerik.Windows.Controls.Input

Adding RadNumericUpDown to the Project

Before proceeding with adding RadNumericUpDown to your project, make sure the required assembly references are added to the project.

You can add RadNumericUpDown manually by writing the XAML code in Example 1. You can also add the control by dragging it from the Visual Studio Toolbox and dropping it over the XAML view.

[XAML] Example 1: Adding RadNumericUpDown in XAML

<telerik:RadNumericUpDown />

In order to use RadNumericUpDown in XAML you have to add the namespace declaration shown in Example 2:

[XAML] Example 2: Declaring Telerik Namespace

xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"

If you run the application you will see and empty RadNumericUpDown as demonstrated in Figure 1.

Figure 1: The empty RadNumericUpDown generated by the code in Example 1

Empty RadNumericUpDown

The default Value of the RadNumericUpDown control is equal to null.

Binding Value

You can then bind RadNumericUpDown's Value to a property of your view model as well as customize it by setting its properties similarly to Example 3:

[XAML] Example 3: Binding RadNumericUpDown's Value

<telerik:RadNumericUpDown Value="{Binding Clubs[0].StadiumCapacity}" Minimum="10000" Maximum="100000" SmallChange="1000" />

See Also