# Getting Started with WPF DateRangePicker

This tutorial will walk you through the creation of a sample application that contains `RadDateRangePicker`. Before that you may want to get familiar with the [Visual Structure](https://www.telerik.com/products/wpf/documentation/controls/raddaterangepicker/visual-structure) article.

## Adding Telerik Assemblies Using NuGet

To use `RadDateRangePicker` when working with NuGet packages, install the `Telerik.Windows.Controls.Input.for.Wpf.Xaml` package. The [package name may vary](https://www.telerik.com/products/wpf/documentation/installation/manual-setup-guides/nuget/available-packages) slightly based on the Telerik dlls set - [Xaml or NoXaml](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/xaml-vs-noxaml)

Read more about NuGet installation in the [Installing UI for WPF from NuGet Package](https://www.telerik.com/products/wpf/documentation/installation/manual-setup-guides/nuget/nuget-installation) article.

> tip With the 2025 Q1 release, the Telerik UI for WPF has a new licensing mechanism. You can learn more about it [here](https://www.telerik.com/products/wpf/documentation/installation/licensing/installing-license-key).

## Adding Assembly References Manually

If you are not using NuGet packages, you can add a reference to the following assemblies:

* **Telerik.Licensing.Runtime**
* **Telerik.Windows.Controls**
* **Telerik.Windows.Controls.Input**

## Adding RadDateRangePicker to the Project

The following example shows how to define `RadDateRangePicker` in a XAML page.

**Adding RadDateRangePicker in XAML**

```XAML
<telerik:RadDateRangePicker />
```

![A picture showing RadDateRangePicker for WPF in Getting Started setup](https://www.telerik.com/products/wpf/documentation/assets/a23dda8cf42ac894f931901f0d71e41e/raddaterangepicker-getting-started-0.png)

To get started with the control you don't need to set any properties. In case you need to manually set the selected range, use the `StartDate` and `EndDate` of `RadDateRangePicker`. The properties can be set directly or via data binding.

**Setting the selection**

```XAML
<telerik:RadDateRangePicker StartDate="2024/1/19" EndDate="2024/2/5" />
```

## Showing the Drop Down Manually

The drop down with the calendars can be manually toggled via the `IsDropDownOpen` property of `RadDateRangePicker`.

**Showing the drop down programmatically**

```C#
this.dateRangePicker.IsDropDownOpen = true;
```

## Read-Only Dates Text Input

To make the date range text input area read-only, set the `IsReadOnly` property of `RadDateRangePicker` to `True`.

**Making the text area read-only**

```XAML
<telerik:RadDateRangePicker IsReadOnly="True" />
```

![A picture showing a read-only RadDateRangePicker for WPF](https://www.telerik.com/products/wpf/documentation/assets/936f7f02312f8cdf5308d57f6e9f4b59/raddaterangepicker-getting-started-1.png)

## Telerik UI for WPF Learning Resources

* [Telerik UI for WPF DateTimePicker Component](https://www.telerik.com/products/wpf/daterangepicker.aspx)
* [Getting Started with Telerik UI for WPF Components](https://www.telerik.com/products/wpf/documentation/getting-started/first-steps-nuget)
* [Telerik UI for WPF Installation](https://www.telerik.com/products/wpf/documentation/installation/manual-setup-guides/installation-guide)
* [Telerik UI for WPF and WinForms Integration](https://www.telerik.com/products/wpf/documentation/common-information/winforms-integration/overview)
* [Telerik UI for WPF Visual Studio Templates](https://www.telerik.com/products/wpf/documentation/installation/manual-setup-guides/visual-studio-templates)
* [Setting a Theme with Telerik UI for WPF](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/styling-apperance-setting-a-theme-overview)
* [Telerik UI for WPF Virtual Classroom (Training Courses for Registered Users)](https://learn.telerik.com/learn/course/external/view/elearning/16/telerik-ui-for-wpf)
* [Telerik UI for WPF License Agreement](https://www.telerik.com/purchase/license-agreement/wpf-dlw-s)
